transition method

Future<LiveBroadcastItem> transition({
  1. required String id,
  2. String? broadcastStatus,
  3. String part = 'snippet,status,contentDetails',
  4. List<String> partList = const [],
  5. String? onBehalfOfContentOwner,
  6. String? onBehalfOfContentOwnerChannel,
})

Changes the status of a YouTube live broadcast and initiates any processes associated with the new status. For example, when you transition a broadcast's status to testing, YouTube starts to transmit video to that broadcast's monitor stream. Before calling this method, you should confirm that the value of the LiveBroadcastItem.status property for the stream bound to your broadcast is active.

Implementation

Future<LiveBroadcastItem> transition({
  required String id,
  String? broadcastStatus,
  String part = 'snippet,status,contentDetails',
  List<String> partList = const [],
  String? onBehalfOfContentOwner,
  String? onBehalfOfContentOwnerChannel,
}) {
  return _rest.transition(
    // _authHeader,
    accept,
    id,
    buildParts(partList, part),
    broadcastStatus: broadcastStatus,
  );
}