startStreaming method

Future<bool> startStreaming(
  1. Bridge bridge, {
  2. String? token,
})

Start streaming for this entertainment configuration.

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

Future<bool> startStreaming(
  Bridge bridge, {
  String? token,
}) async =>
    await _entertainmentStream.startStreaming(
      bridge,
      token: token,
    );