All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.youtube.YouTube.LiveBroadcasts.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240514-2.0.0
Show newest version






YouTube.LiveBroadcasts (YouTube Data API v3 v3-rev20240417-2.0.0)












com.google.api.services.youtube

Class YouTube.LiveBroadcasts

  • Enclosing class:
    YouTube


    public class YouTube.LiveBroadcasts
    extends Object
    The "liveBroadcasts" collection of methods.
    • Constructor Detail

      • LiveBroadcasts

        public LiveBroadcasts()
    • Method Detail

      • bind

        public YouTube.LiveBroadcasts.Bind bind(String id,
                                                List<String> part)
                                         throws IOException
        Bind a broadcast to a stream. Create a request for the method "liveBroadcasts.bind". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        id - Broadcast to bind to the 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.
        Returns:
        the request
        Throws:
        IOException
      • delete

        public YouTube.LiveBroadcasts.Delete delete(String id)
                                             throws IOException
        Delete a given broadcast. Create a request for the method "liveBroadcasts.delete". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        id - Broadcast to delete.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public YouTube.LiveBroadcasts.Insert insert(List<String> part,
                                                    LiveBroadcast content)
                                             throws IOException
        Inserts a new stream for the authenticated user. Create a request for the method "liveBroadcasts.insert". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        part - The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
        content - the LiveBroadcast
        Returns:
        the request
        Throws:
        IOException
      • insertCuepoint

        public YouTube.LiveBroadcasts.InsertCuepoint insertCuepoint(Cuepoint content)
                                                             throws IOException
        Insert cuepoints in a broadcast Create a request for the method "liveBroadcasts.insertCuepoint". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        content - the Cuepoint
        Returns:
        the request
        Throws:
        IOException
      • list

        public YouTube.LiveBroadcasts.List list(List<String> part)
                                         throws IOException
        Retrieve the list of broadcasts associated with the given channel. Create a request for the method "liveBroadcasts.list". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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, status and statistics.
        Returns:
        the request
        Throws:
        IOException
      • transition

        public YouTube.LiveBroadcasts.Transition transition(String broadcastStatus,
                                                            String id,
                                                            List<String> part)
                                                     throws IOException
        Transition a broadcast to a given status. Create a request for the method "liveBroadcasts.transition". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        broadcastStatus - The status to which the broadcast is going to transition.
        id - Broadcast to transition.
        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.
        Returns:
        the request
        Throws:
        IOException
      • update

        public YouTube.LiveBroadcasts.Update update(List<String> part,
                                                    LiveBroadcast content)
                                             throws IOException
        Updates an existing broadcast for the authenticated user. Create a request for the method "liveBroadcasts.update". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        part - The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
        content - the LiveBroadcast
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy