Broadcast class

A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.

Constructors

Broadcast(Dio dio)

Properties

accept String
finalinherited
contentType String
finalinherited
dio → Dio
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind({required String id, String part = 'snippet,status,contentDetails', List<String> partList = const [], String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel, String? streamId}) Future<LiveBroadcastItem>
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.
buildParts(List<String> partList, String part) String
inherited
delete({required String id, String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel}) Future<void>
Deletes a broadcast.
getActiveBroadcast() Future<LiveBroadcastItem>
getUpcomingAndActiveBroadcast() Future<LiveBroadcastItem>
insert({required Map<String, dynamic> body, String part = 'snippet,status,contentDetails', List<String> partList = const [], String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel}) Future<LiveBroadcastItem>
Creates a broadcast.
list({String part = 'snippet,status,contentDetails', List<String> partList = const [], String? broadcastStatus, String? broadcastType, String? id, int? maxResults, bool? mine, String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel, String? pageToken}) Future<LiveBroadcastResponse>
Returns a list of YouTube broadcasts that match the API request parameters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transition({required String id, String? broadcastStatus, String part = 'snippet,status,contentDetails', List<String> partList = const [], String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel}) Future<LiveBroadcastItem>
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.
update({required Map<String, dynamic> body, String part = 'snippet,status,contentDetails', List<String> partList = const [], String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel}) Future<LiveBroadcastItem>
Updates a broadcast. For example, you could modify the broadcast settings defined in the LiveBroadcastItem resource's LiveBroadcastItem.contentDetails object.

Operators

operator ==(Object other) bool
The equality operator.
inherited