bind method

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

Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can only be bound to one video stream, though a video stream may be bound to more than one broadcast.

Implementation

Future<LiveBroadcastItem> bind({
  required String broadcastId,
  required String streamId,
  String part = 'snippet,status,contentDetails',
  List<String> partList = const [],
  String? onBehalfOfContentOwner,
  String? onBehalfOfContentOwnerChannel,
}) async {
  return _rest.bind(
      _authHeader, accept, broadcastId, streamId, buildParts(partList, part));
}