Struct google_youtube3::LiveBroadcastMethods
[−]
[src]
pub struct LiveBroadcastMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on liveBroadcast resources.
It is not used directly, but through the YouTube
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_youtube3 as youtube3; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use youtube3::YouTube; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), <MemoryStorage as Default>::default(), None); let mut hub = YouTube::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `bind(...)`, `control(...)`, `delete(...)`, `insert(...)`, `list(...)`, `transition(...)` and `update(...)` // to build up your call. let rb = hub.live_broadcasts();
Methods
impl<'a, C, A> LiveBroadcastMethods<'a, C, A>
[src]
fn control(&self, id: &str, part: &str) -> LiveBroadcastControlCall<'a, C, A>
Create a builder to help you perform the following task:
Controls the settings for a slate that can be displayed in the broadcast stream.
Arguments
id
- The id parameter specifies the YouTube live broadcast ID that uniquely identifies the broadcast in which the slate is being updated.part
- The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
fn update(&self, request: LiveBroadcast) -> LiveBroadcastUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a broadcast. For example, you could modify the broadcast settings defined in the liveBroadcast resource's contentDetails object.
Arguments
request
- No description provided.
fn bind(&self, id: &str, part: &str) -> LiveBroadcastBindCall<'a, C, A>
Create a builder to help you perform the following task:
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.
Arguments
id
- The id parameter specifies the unique ID of the broadcast that is being bound to a video stream.part
- The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
fn transition(
&self,
broadcast_status: &str,
id: &str,
part: &str
) -> LiveBroadcastTransitionCall<'a, C, A>
&self,
broadcast_status: &str,
id: &str,
part: &str
) -> LiveBroadcastTransitionCall<'a, C, A>
Create a builder to help you perform the following task:
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 status.streamStatus property for the stream bound to your broadcast is active.
Arguments
broadcastStatus
- The broadcastStatus parameter identifies the state to which the broadcast is changing. Note that to transition a broadcast to either the testing or live state, the status.streamStatus must be active for the stream that the broadcast is bound to.id
- The id parameter specifies the unique ID of the broadcast that is transitioning to another status.part
- The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
fn insert(&self, request: LiveBroadcast) -> LiveBroadcastInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a broadcast.
Arguments
request
- No description provided.
fn delete(&self, id: &str) -> LiveBroadcastDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes a broadcast.
Arguments
id
- The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted.
fn list(&self, part: &str) -> LiveBroadcastListCall<'a, C, A>
Create a builder to help you perform the following task:
Returns a list of YouTube broadcasts that match the API request parameters.
Arguments
part
- The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.