startStreaming static method
Start streaming for the givin entertainmentConfiguration
.
The bridge
parameter is the bridge to establish the handshake with.
token
is the access token for remote access.
May throw ExpiredAccessTokenException if trying to connect to the bridge remotely and the token is expired. If this happens, refresh the token with TokenRepo.refreshRemoteToken.
Implementation
static Future<bool> startStreaming(
Bridge bridge,
String entertainmentConfigurationId,
DtlsData dtlsData,
String? token,
) async {
final bool isStarted = await _startStreaming(
bridge,
entertainmentConfigurationId,
token,
);
if (!isStarted) return false;
return await EntertainmentStreamRepo._establishDtlsHandshake(
bridge: bridge,
dtlsData: dtlsData,
token: token,
);
}