To go live there are several steps: 1) authenticate the user 2) create a broadcast 3) create a stream 4) bind the stream to the broadcast 5) send your video to ... ... <看更多>
「youtube live streaming api」的推薦目錄:
- 關於youtube live streaming api 在 YouTube Live Streaming API Overview | Google Developers 的評價
- 關於youtube live streaming api 在 Using the YouTube Live APIs to Stream to the World - Medium 的評價
- 關於youtube live streaming api 在 Newest 'youtube-livestreaming-api' Questions - Stack Overflow 的評價
- 關於youtube live streaming api 在 Using Youtube live streaming API in odoo website 的評價
- 關於youtube live streaming api 在 Getting Started With YouTube Live Streaming API - TuBeast 的評價
- 關於youtube live streaming api 在 Create a YouTube live stream with an encoder - Google Help 的評價
- 關於youtube live streaming api 在 youtube.liveStreams.list - Any API 的評價
- 關於youtube live streaming api 在 請益YouTube Live Streaming API的使用方式- 軟體工程師板 的評價
- 關於youtube live streaming api 在 請益YouTube Live Streaming API的使用方式- 軟體工程師板 的評價
- 關於youtube live streaming api 在 YT Watchme by youtube - GitHub Pages 的評價
- 關於youtube live streaming api 在 YouTube Live Streaming API - Rapid API 的評價
- 關於youtube live streaming api 在 如何將live stream發佈至YouTube(using YouTube Live ... 的評價
- 關於youtube live streaming api 在 How to Add YouTube Live Stream Feature in Android? 的評價
- 關於youtube live streaming api 在 liveStreams() 的評價
- 關於youtube live streaming api 在 Stream to YouTube - Wowza 的評價
- 關於youtube live streaming api 在 youtube.v3 library - Dart API - Pub.dev 的評價
- 關於youtube live streaming api 在 How Can I Use Youtube Live Stream Api In C 的評價
- 關於youtube live streaming api 在 Mux Live Streaming API VS YouTube Mobile Live Streaming 的評價
- 關於youtube live streaming api 在 StreamingClientLibrary.YouTube 1.0.0.16 - NuGet 的評價
- 關於youtube live streaming api 在 How to livestream to Youtube using the ... - DEV Community 的評價
- 關於youtube live streaming api 在 alchemyguy/youtube-laravel-api | LaravelPackages.net 的評價
- 關於youtube live streaming api 在 How to livestream to Youtube using the Youtube Live ... 的評價
- 關於youtube live streaming api 在 YouTube's new API is all about live streaming - LinkedIn 的評價
- 關於youtube live streaming api 在 youtube - Go Packages 的評價
- 關於youtube live streaming api 在 How to Easily Make a YouTube Live Stream - ScreenCloud 的評價
- 關於youtube live streaming api 在 The Complete Guide to Streaming on YouTube Live 的評價
- 關於youtube live streaming api 在 YouTube API chatbot for live broadcast? : r/AskProgramming 的評價
- 關於youtube live streaming api 在 VidiU (original) YouTube new API workaround - Teradek 的評價
- 關於youtube live streaming api 在 stream to youtube with live-streaming-api - Yuan Hsiang Cheng 的評價
- 關於youtube live streaming api 在 Using Live RTMP Outputs to Stream to Facebook and YouTube 的評價
- 關於youtube live streaming api 在 Youtube Video Player + Youtube API | Video - Unity Asset Store 的評價
- 關於youtube live streaming api 在 youtube-stream-url - npm 的評價
- 關於youtube live streaming api 在 [Objective-C] 初試一下youtube live streaming (一) 相關資源蒐集 的評價
- 關於youtube live streaming api 在 How to Get a YouTube API Key [Tutorial + Examples] 的評價
- 關於youtube live streaming api 在 60fps Live Streaming on YouTube in HTML5 的評價
- 關於youtube live streaming api 在 [Answer]-YouTube Live Streaming API in swift-swift 的評價
- 關於youtube live streaming api 在 Google Developers: YouTube Live Streaming API 的評價
- 關於youtube live streaming api 在 Using the YouTube Data API with Google Apps Script and ... 的評價
- 關於youtube live streaming api 在 How to Connect YouTube with Castr - Castr Help Center 的評價
- 關於youtube live streaming api 在 Side Project: YouTube Live Stream Scheduler - Part 2 的評價
- 關於youtube live streaming api 在 Youtube Live Streaming API authorization flow without user ... 的評價
- 關於youtube live streaming api 在 Sending Live Streaming SMS Notifications with PHP and ... 的評價
- 關於youtube live streaming api 在 YouTube Live Streaming API でライブ配信する 的評價
- 關於youtube live streaming api 在 How to YouTube live stream from Flutter app - Google Groups 的評價
- 關於youtube live streaming api 在 Video stream from web page to facebook youtube - Flashphoner 的評價
- 關於youtube live streaming api 在 How to: Fix “Something went wrong” error in YouTube Live ... 的評價
- 關於youtube live streaming api 在 YouTube announces new live-streaming video API for game ... 的評價
- 關於youtube live streaming api 在 YouTube API Tutorial - w3resource 的評價
- 關於youtube live streaming api 在 如何將live stream發佈到Youtube - 台部落 的評價
- 關於youtube live streaming api 在 Gmm Youtube - TSV Kriegshaber Turnen 的評價
- 關於youtube live streaming api 在 YouTube Live vs Facebook Live - A side by side review 的評價
- 關於youtube live streaming api 在 Youtube outages reported in the last 24 hours - Downdetector 的評價
- 關於youtube live streaming api 在 Twitch vs Youtube for Streaming: Which Platform is Better for ... 的評價
- 關於youtube live streaming api 在 Embed Plus YouTube WordPress Plugin With YouTube ... 的評價
- 關於youtube live streaming api 在 Issue with YouTube API - Resolved - The Streaming Guys 的評價
youtube live streaming api 在 Newest 'youtube-livestreaming-api' Questions - Stack Overflow 的八卦
... <看更多>
youtube live streaming api 在 Using Youtube live streaming API in odoo website 的八卦
Hello all i want to use youtube live streaming api for broadcast video on the my website. so any body help me to how to capture webcame input and then it ... ... <看更多>
youtube live streaming api 在 Getting Started With YouTube Live Streaming API - TuBeast 的八卦
YouTube Live Streaming API allows developers to create applications that enable them to stream live video content to YouTube. With the API ... ... <看更多>
youtube live streaming api 在 Create a YouTube live stream with an encoder - Google Help 的八卦
There are three ways to stream on YouTube: use a webcam, your mobile device, or an encoder (streaming software or a hardware encoder). Using an encoder lets you ... ... <看更多>
youtube live streaming api 在 youtube.liveStreams.list - Any API 的八卦
The id parameter specifies a comma-separated list of YouTube stream IDs that identify the streams being retrieved. In a liveStream resource, the id property ... ... <看更多>
youtube live streaming api 在 請益YouTube Live Streaming API的使用方式- 軟體工程師板 的八卦
如題,因為網路上資源比較亂,所以想說直接上來問看看有經驗的人,我想要在一段直播中擷取所有的直播留言與留言ID,請問這有辦法靠Live Streaming API ... ... <看更多>
youtube live streaming api 在 請益YouTube Live Streaming API的使用方式- 軟體工程師板 的八卦
如題,因為網路上資源比較亂,所以想說直接上來問看看有經驗的人,我想要在一段直播中擷取所有的直播留言與留言ID,請問這有辦法靠Live Streaming API ... ... <看更多>
youtube live streaming api 在 YT Watchme by youtube - GitHub Pages 的八卦
For more information, you can read the Youtube API blog post. This application utilizes YouTube Data API v3 , YouTube Live Streaming API, Google Play Services ... ... <看更多>
youtube live streaming api 在 YouTube Live Streaming API - Rapid API 的八卦
Check out the YouTube Live Streaming API on the RapidAPI API Directory. Learn more about this API, its Documentation and Alternatives available on RapidAPI. ... <看更多>
youtube live streaming api 在 如何將live stream發佈至YouTube(using YouTube Live ... 的八卦
如何將live stream發佈至YouTube(using YouTube Live Streaming API). 準備工作: 1.若沒有Google Account,請先申請一個 ... <看更多>
youtube live streaming api 在 How to Add YouTube Live Stream Feature in Android? 的八卦
How to Add YouTube Live Stream Feature in Android? · Step 1: Create a New Project · Step 2: Working with the activity_main.xml file · Step 3: ... ... <看更多>
youtube live streaming api 在 liveStreams() 的八卦
Args: id: string, The id parameter specifies the YouTube live stream ID for the ... Returns a list of video streams that match the API request parameters. ... <看更多>
youtube live streaming api 在 Stream to YouTube - Wowza 的八卦
Send a live stream from Wowza Streaming Engine to YouTube Live for distributed delivery. ... <看更多>
youtube live streaming api 在 youtube.v3 library - Dart API - Pub.dev 的八卦
Brief description of the live stream cdn settings. Channel: A channel resource contains information about a YouTube channel. ChannelAuditDetails: The ... ... <看更多>
youtube live streaming api 在 How Can I Use Youtube Live Stream Api In C 的八卦
live api ?, >YouTube live stream URL is randomly changing., I found this on stackoverflow "YouTube Live Streaming embed code keeps changing" so I know the the ... ... <看更多>
youtube live streaming api 在 Mux Live Streaming API VS YouTube Mobile Live Streaming 的八卦
Compare Mux Live Streaming API VS YouTube Mobile Live Streaming and find out what's different, what people are saying, and what are their alternatives. ... <看更多>
youtube live streaming api 在 StreamingClientLibrary.YouTube 1.0.0.16 - NuGet 的八卦
C# client library for the YouTube streaming service: https://www.youtube.com/live For more information, please see our project site: ... ... <看更多>
youtube live streaming api 在 How to livestream to Youtube using the ... - DEV Community 的八卦
To go live there are several steps: 1) authenticate the user 2) create a broadcast 3) create a stream 4) bind the stream to the broadcast 5) ... ... <看更多>
youtube live streaming api 在 alchemyguy/youtube-laravel-api | LaravelPackages.net 的八卦
PHP (Laravel) Package for Google / YouTube API V3 with Google Auth. Features. Google Auth; Full Live Streaming API for Youtube; Full Youtube Channel API ... <看更多>
youtube live streaming api 在 How to livestream to Youtube using the Youtube Live ... 的八卦
If you're building an app and you want to allow users to livestream video directly to youtube you will need to work with the Youtube Live Streaming API. ... <看更多>
youtube live streaming api 在 YouTube's new API is all about live streaming - LinkedIn 的八卦
Hello ProAV & Broadcast Professionals! YouTube has just released version 3 of the YouTube API which now includes support for live streaming ... ... <看更多>
youtube live streaming api 在 youtube - Go Packages 的八卦
Package youtube provides access to the YouTube Data API v3. ... func (s *LiveStream) MarshalJSON() ([]byte, error). type LiveStreamConfigurationIssue. ... <看更多>
youtube live streaming api 在 How to Easily Make a YouTube Live Stream - ScreenCloud 的八卦
A guide to enabling a YouTube account for live streaming, ... Best for: Live streamers who may need to customize their feed or functionality using an API. ... <看更多>
youtube live streaming api 在 The Complete Guide to Streaming on YouTube Live 的八卦
YouTube Live is YouTube's livestreaming feature that enables content creators to interact with their audience in real time via video and chat. Users can watch ... ... <看更多>
youtube live streaming api 在 YouTube API chatbot for live broadcast? : r/AskProgramming 的八卦
Yes, it is possible to create a chatbot for a YouTube livestream using the YouTube Live Streaming API. The API allows you to interact with live chats on a ... ... <看更多>
youtube live streaming api 在 VidiU (original) YouTube new API workaround - Teradek 的八卦
How to stream RTMP to YT with VidiU Original/Mini? I'm getting the error Error YouTube Live API:BroadcastDNE - how can I resolve? ... <看更多>
youtube live streaming api 在 stream to youtube with live-streaming-api - Yuan Hsiang Cheng 的八卦
APIs Explorer · youtube Data API 找到youtube.liveBroadcasts.insert · 將OAuth request 設成ON · part欄位snippet,status ... ... <看更多>
youtube live streaming api 在 Using Live RTMP Outputs to Stream to Facebook and YouTube 的八卦
The Control Room page will open with details about the live event including the Streaming Endpoint (RTMP URL) and Stream Name which will be used by your encoder ... ... <看更多>
youtube live streaming api 在 Youtube Video Player + Youtube API | Video - Unity Asset Store 的八卦
Get the Youtube Video Player + Youtube API package from Light Shaft and speed up your game development ... Twitch Live Stream Player - For HLS players. ... <看更多>
youtube live streaming api 在 youtube-stream-url - npm 的八卦
Get stream url from youtube link. Latest version: 2.4.1, last published: 2 months ago. Start using youtube-stream-url in your project by ... ... <看更多>
youtube live streaming api 在 [Objective-C] 初試一下youtube live streaming (一) 相關資源蒐集 的八卦
記錄一下工作需要研究的youtube live streaming的呼叫. 前置作業. 要先到https://console.developers.google.com/ 要先開一個專案並申請api金鑰 ... ... <看更多>
youtube live streaming api 在 How to Get a YouTube API Key [Tutorial + Examples] 的八卦
Try it out using Google's API explorer tool. youtube live streaming api: google api explorer testing tool. Before you touch a single line of ... ... <看更多>
youtube live streaming api 在 60fps Live Streaming on YouTube in HTML5 的八卦
When you start a live stream on YouTube at 60fps, we'll transcode your ... In addition, any app using our live streaming API can add a new ... ... <看更多>
youtube live streaming api 在 [Answer]-YouTube Live Streaming API in swift-swift 的八卦
YTLiveStreaming is a framework for creating live broadcasts and video streams on YouTube using the YouTube Live Streaming API (YouTube Data API v3) in Swift ... ... <看更多>
youtube live streaming api 在 Google Developers: YouTube Live Streaming API 的八卦
La API YouTube Live Streaming te permite crear, actualizar y gestionar eventos en vivo en Youtube. Con esta API puedes agendar emisiones y ... ... <看更多>
youtube live streaming api 在 Using the YouTube Data API with Google Apps Script and ... 的八卦
The YouTube Streaming API documentation has more details about this but the basic process is to schedule events (broadcasts) create a live ... ... <看更多>
youtube live streaming api 在 How to Connect YouTube with Castr - Castr Help Center 的八卦
How to add YouTube platform to stream from Castr using API connection or custom RTMP key. ... <看更多>
youtube live streaming api 在 Side Project: YouTube Live Stream Scheduler - Part 2 的八卦
The YouTube Live Stream API exists through the YouTube Data API. The first part generally follows the Python Quickstart guide. ... Second, on the ... ... <看更多>
youtube live streaming api 在 Youtube Live Streaming API authorization flow without user ... 的八卦
The only authorization method that is supported by the YouTube api is Oauth2. What you can do and what I have done in the past is authorize ... ... <看更多>
youtube live streaming api 在 Sending Live Streaming SMS Notifications with PHP and ... 的八卦
Learn how to send SMS alerts when a YouTube channel goes live with a bit of PHP code and the YouTube API. ... <看更多>
youtube live streaming api 在 YouTube Live Streaming API でライブ配信する 的八卦
YouTube Live Streaming API を触ってみたのでその覚え書き 目次 目次 YouTube Live Streaming APIとは とりあえずAPIを触ってみる APIを使う前にやる ... ... <看更多>
youtube live streaming api 在 How to YouTube live stream from Flutter app - Google Groups 的八卦
Hello,. I need help creating a Flutter mobile app that live streams to YouTube using the YouTube Live Streaming API. ... <看更多>
youtube live streaming api 在 Video stream from web page to facebook youtube - Flashphoner 的八卦
Both Facebook and YouTube offer broadcasting capabilities that allow live ... Call Server has its REST API that allows redirecting a WebRTC video stream to ... ... <看更多>
youtube live streaming api 在 How to: Fix “Something went wrong” error in YouTube Live ... 的八卦
It turns out that YouTube has a Live Streaming API. ... “Video Streams” are referred to on the YouTube Live Streaming page as “Stream keys”. ... <看更多>
youtube live streaming api 在 YouTube announces new live-streaming video API for game ... 的八卦
The new APIs allow developers to send YouTube a live stream of video coming from a game, and YouTube will then transcode the video in real ... ... <看更多>
youtube live streaming api 在 YouTube API Tutorial - w3resource 的八卦
Login to your youtube channel. There you have options to live stream. Femi • 5 years ago. Thank you for your reply, but what i want to do is ... ... <看更多>
youtube live streaming api 在 如何將live stream發佈到Youtube - 台部落 的八卦
完成以後就可以獲取一個json文件。裏面就有需要的secrete_id。保存該json文件,會放入Android 工程中。 d.如果完全沒有使用過Youtube API可以 ... ... <看更多>
youtube live streaming api 在 Gmm Youtube - TSV Kriegshaber Turnen 的八卦
Via his YouTube livestream yesterday: https://youtu. k 0 8k GMM is a ... Using the API, you can schedule events (broadcasts) and associate them with video. ... <看更多>
youtube live streaming api 在 YouTube Live vs Facebook Live - A side by side review 的八卦
Live Streaming Platform Tech Specs ; Quality. Good. Best ; API. Yes, (See Notes Below). Yes, (See Notes Below) ; Live Stream Map. Yes. No ; Live ... ... <看更多>
youtube live streaming api 在 Youtube outages reported in the last 24 hours - Downdetector 的八卦
Real-time problems and status for Youtube UK. Can't log in? Is the app not ... Helen M Bouhl Still can't stream YouTube on my Fire TV as if 12:36pm CST. ... <看更多>
youtube live streaming api 在 Twitch vs Youtube for Streaming: Which Platform is Better for ... 的八卦
The maximum quality on Twitch is 1080p, while on YouTube one can stream in 4K with HDR, as well as broadcast in 360-degree mode. From this point ... ... <看更多>
youtube live streaming api 在 Embed Plus YouTube WordPress Plugin With YouTube ... 的八卦
YouTube Embed WordPress Plugin. Embed a responsive video, YouTube channel gallery, playlist gallery, YouTube livestream. Defer JavaScript. ... <看更多>
youtube live streaming api 在 Issue with YouTube API - Resolved - The Streaming Guys 的八卦
Teradek has confirmed that the YouTube Live integration for hardware encoders, apps, and cloud services (Core and Sharelink) has been ... ... <看更多>
youtube live streaming api 在 YouTube Live Streaming API Overview | Google Developers 的八卦
The YouTube Live Streaming API lets you create, update, and manage live events on YouTube. Using the API, you can schedule events (broadcasts) and associate them with video streams, which represent the actual broadcast content.
The Live Streaming API is actually comprised of components of the YouTube Data API and the YouTube Content ID API. The Data API enables YouTube users to manage their YouTube accounts, while the YouTube Content ID API enables interactions with YouTube's rights management system. However, all of the resources that make up the Live Streaming API are used only to create and manage live events.
This document is intended for developers who want to write applications to facilitate live broadcasting on YouTube. It explains basic concepts of YouTube and of the API itself. It also provides an overview of the different functions that the API supports.
Core conceptsbroadcasts
A broadcast represents an event that can be watched on YouTube as it happens. Broadcasts can also be recorded and saved as YouTube videos so that users can watch them after they happen. streams
A stream identifies the audio-video content that is being communicated to YouTube. Each broadcast is associated with one video stream. cuepoints
A cuepoint represents an ad break that can be inserted into a live broadcast.
API use cases
The list below suggests several ways to use the API in your application:
Schedule broadcasts and define broadcast settings. Your application could enable users to predefine broadcast settings and then select the settings to apply to a particular broadcast.
Associate video streams and broadcasts.
Enable broadcasters to define information about a broadcast and its video (using the YouTube Data API) at the same time.
Simplify transitions between broadcast states (for example,
testing
orlive
) and enable users to insert cuepoints.Before you start
You need a Google Account to access the Google API Console, request an API key, and register your application.
Register your application with Google so that it can submit API requests.
After registering your application, select the YouTube Data API as one of the services that your application uses:
Go to the API Console and select the project that you just registered.
Visit the Enabled APIs page.
In the list of APIs, make sure the status is ON for the YouTube Data API v3 and, if you are a YouTube Content Partner, the YouTube Content ID API.
Familiarize yourself with the core concepts of the JavaScript Object Notation (JSON) data format. JSON is a common, language-independent data format that provides a simple text representation of arbitrary data structures. For more information, see json.org.
Authorizing API requests
As noted above, the Live Streaming API uses functionality that is technically part of either the YouTube Data API or the YouTube Content ID API. You can use the Content ID API to provide YouTube with metadata, ownership information, and policy information for your assets. (A live video broadcast is an example of an asset.) The API also lets you claim videos and set ad policies for your videos.
This section explains the authorization requirements for requests to the Content ID API, which are different from the requirements for authorizing other Live Streaming API requests.
Calling the Data API
The API request must be authorized by the Google Account that owns the broadcasting YouTube channel. Calling the Content ID API
The API request must be authorized by a Google Account that is linked to the content owner that owns the broadcasting YouTube channel.
Resources and resource types
A resource is an individual data entity with a unique identifier. The table below describes the
different types of resources that you will interact with using the
Live Streaming API. Technically, all of these resources are
actually defined as part of either the YouTube Data API
or the YouTube Content ID API. However, the
liveBroadcast
,liveStream
, andcuepoint
resources areonly used to create and manage live events.
Resources
liveBroadcast
Contains information about an event that you are broadcasting on YouTube. A
liveBroadcast
resource is an extension of a YouTube video resource and sets thevideo metadata that would be pertinent to a live broadcast but not to other YouTube videos.
As such, a
liveBroadcast
resource corresponds to exactly one YouTube video resource.In fact, the
liveBroadcast
resource and the
video
resource share thesame ID. And after creating the broadcast using the Live Streaming API, you can use the
YouTube Data API to provide additional metadata about the video.
liveStream
Contains information about the video stream that you are transmitting to YouTube. The stream
provides the content that will be broadcast to YouTube users. Once created, a
liveStream
resource can be bound to exactly one
liveBroadcast
resource. Similarly, theliveBroadcast
resource can only be bound to oneliveStream
resource.cuepoint
Inserts a cuepoint in the broadcast video stream, which might trigger an ad break. Use the
liveBroadcasts.cuepoint
method to insert a cuepoint during a broadcast.
video
Represents a single YouTube video. As noted above, a
liveBroadcast
resource is an extension of avideo
resource. You can use the YouTube Data API to update metadata about the video, such as the recording location or the regions where the broadcast will be viewable.videoAdvertisingOptions
Defines the advertising settings for a video (or broadcast). You use the YouTube Content ID API to set advertising options.
asset
Represents a piece of intellectual property, such as a movie or an episode of a show. In this case, the broadcast video is the asset. You will use the YouTube Content ID API to create and manage
asset
resources.claim
Links a video to an asset that the video matches. You create a claim, using the YouTube Content ID API, to identify yourself as the owner of the broadcast video.
policy
Defines rules that specify the circumstances under which you want your content to be viewable on YouTube or blocked from appearing on YouTube. You need to apply a policy to your broadcast video and can also specify a policy that YouTube will apply to user-uploaded videos that match your broadcast video.
Supported operations
The following table shows the different methods that the API supports:
Operations
list
Retrieves (
GET
) a list of zero or more resources.insert
Creates (
POST
) a new resource.update
Modifies (
PUT
) an existing resource to reflect data in your request.bind
Links a
liveBroadcast
resource with aliveStream
resource or removes such a link.transition
Changes the status of a
liveBroadcast
resource and initiates any processes associated with the new status. For example, when you transition a broadcast's status totesting
, YouTube starts to transmit video to that broadcast's monitor stream.delete
Removes (
DELETE
) a specific resource.The table below identifies the operations that are supported for different types of resources. Operations that insert, update, or delete resources always require user authorization. In some cases,
list
methods support both authorized and unauthorized requests, where unauthorized requests only retrieve public data while authorized requests can also retrieve information that is restricted to the currently authenticated user.Supported Operations
list
insert
update
bind
transition
cuepoint
delete
liveBroadcast
liveStream
Partial resources
The API allows, and actually requires, the retrieval of partial resources so that applications avoid transferring, parsing, and storing unneeded data. This approach also ensures that the API uses network, CPU, and memory resources more efficiently.
The
part
parameter is a required parameter for any API request that retrieves or returns a YouTube Data API resource. The parameter identifies one or more top-level (non-nested) resource properties that should be included in an API response. For example, aliveStream
resource has the following parts:snippet
cdn
status
All of these parts are objects that contain nested properties, and you can think of these objects as groups of metadata fields that the API server might (or might not) retrieve. As such, the
part
parameter requires you to select the resource components that your application actually uses. This requirement serves two important purposes:It reduces latency by preventing the API server from spending time retrieving metadata fields that your application doesn't use.
It reduces bandwidth usage by reducing (or eliminating) the amount of unnecessary data that your application might retrieve.
Over time, as resources add more parts, these benefits will only increase since your application will not be requesting newly introduced properties that it doesn't support.
Tips and best practicesClaim your contentIf you would like to show ads during your broadcast, you need to claim the broadcast video before the event begins. To claim content, you must be a YouTube Content Partner participating in the Content ID program.
The process for claiming your live broadcast video is different than the normal process for claiming a video. When claiming live video, you need to create your claim before the video actually exists. The API does support this, and the life of a broadcast document explains the YouTube Content ID API calls that enable you to create your claim.
Preview and test your contentUpon receiving your inbound video stream, YouTube can then broadcast that video on two different outbound streams:
The monitor stream enables you to preview (and test) your video broadcast. It is a private stream that is only accessible to you. You can only transition a broadcast to the
testing
phase if the broadcast's monitor stream is enabled. The monitor stream does not show ad breaks.The broadcast stream is the stream visible to your audience. You can set the broadcast's privacy status to either
public
,private
, orunlisted
. (A private broadcast is only visible to users who have been explicitly invited to watch it, while an unlisted broadcast is visible to anyone with a link to view it.)You can choose to delay the broadcast stream so that it does not run concurrently with the monitor stream. By delaying the broadcast stream, you can have more fine-grained control over the time that you insert cuepoints into the broadcast.
However, delaying the broadcast stream makes it difficult for your live presenters to interact with your viewing audience. In addition, delaying the broadcast increases the likelihood that viewers will discover key details about the event from sources other than your broadcast. For example, if you are broadcasting a sporting event on a 60-second delay, viewers might learn about critical moments in the event from other real-time news sources before actually seeing them in the broadcast.
YouTube recommends that you enable the monitor stream for your broadcast so that you can test your content. You should choose whether to also delay your broadcast based on your desire to control timing of cuepoints as opposed to your desire to interact with your audience or provide real-time coverage of an event.
Running midroll ads during a broadcast streamDuring a broadcast, you can insert a cuepoint to indicate that an ad break should start in
the broadcast as soon as possible or at a specified time. The ad break enables YouTube to run
midroll ads during the broadcast.
Ad breaks have the following characteristics:
It has a predefined length of time, which you set using the
cuepoint
resource'sdurationSecs
property. After the ad break concludes, viewers return to the live broadcast.
When an ad break happens, an ad only plays in the video player for viewers who are watching
the broadcast when the cuepoint is inserted. An ad does not run when viewers refresh the page
where the broadcast is playing or when visitors start watching the broadcast after the
cuepoint is inserted.
The sequence of steps below reflects the best practice for inserting an ad break during your broadcast:
Set time offsetsWhen inserting a cuepoint, you can specify that it should be inserted right away or that it
should be inserted at a specific point in the broadcast. Your options depend on whether the
broadcast stream for your video is delayed.
If your broadcast stream is not delayed, then you can insert the cuepoint immediately or use
the
walltimeMs
property to have the ad break start at a particular time.
To start the ad break immediately, call the
liveBroadcasts.cuepoint
method. In theresource in the request body, set the
insertionOffsetTimeMs
property'svalue to
0
or do not specify a value for that property and do not specifya value for the
walltimeMs
property.
Important: Note that viewers do not see the resulting ad
content immediately. There may be a delay of around 30 seconds before the ad content is
visible to users. During that delay, your broadcast stream will still be visible to your
viewers, and you need to watch the broadcast stream to determine when the ad content
actually displays instead of your monitor stream.
To start the ad break at a particular time, call the
liveBroadcasts.cuepoint
method and use the
walltimeMs
property to specify the desired time. The property value is an integer that represents
an epoch timestamp.
If your broadcast stream is delayed, then you can insert the cuepoint immediately as
described above, specify a clock time as described above, or you can specify a time offset to
determine when the ad break will start. The time offset specifies a point in your broadcast
when viewers should see an ad.
The offset value is measured in milliseconds from the beginning of the monitor stream for
your broadcast. Note that if your broadcast has a testing phase, then the monitor stream
starts when your broadcast transitions to the
testing
status. Otherwise, yourmonitor stream starts when your broadcast transitions to the
live
status.When inserting a cuepoint, set the
cuepoint
resource'sinsertionOffsetTimeMs
property to the desired offset.
Calculate the time offset value
To retrieve the offset value, call the YouTube Player API's
getCurrentTime
function for the player that is playing the monitor stream. Use the retrieved value to insert the cuepoint in the broadcast stream at that time.The possible values for the offset time can be calculated as the following range:
The
Δ
is a five-second buffer at the beginning and end of the possible time offsets when YouTube cannot precisely insert a cuepoint. For example:A broadcast has a five-minute testing phase.
The broadcast stream is delayed 60 seconds after the monitor stream.
The broadcaster is inserting the cuepoint four minutes after the broadcast transitions to
live
status. (This is three minutes after the broadcast stream becomes visible.)In this case, the possible range of offset times is
[(485,000), (535,000)]
.These times are specified in milliseconds, and are calculated using the following values:
Troubleshooting and error handlingelapsed_time=540000
– The monitor stream has run for nineminutes (540 seconds, 540000 milliseconds) when the
liveBroadcasts.cuepoint
method is called.broadcast_delay=60000
– The broadcast stream is delayed by 60 seconds, or 60000 milliseconds.Δ=5000
– The five-second buffer when the cuepoint cannot be reliably inserted.The following guidelines explain how to resolve specific problems that may arise. For the lists
of errors that each API method might return, see YouTube Live Streaming API - Errors.
When a broadcast transitions from one status to another, it may temporarily be assigned with another status while YouTube completes the actions associated with the transition. For example, if you send a
liveBroadcasts.transition
request to change a broadcast's status fromready
totesting
, YouTube will set the broadcast's status totestStarting
and then complete the actions associated with the status change. When all of those actions have been completed, YouTube will update the broadcast's status totesting
, thereby indicating that the transition is complete.If a broadcast becomes stuck with a
testStarting
orliveStarting
status, you need to call theliveBroadcasts.delete
method and delete the broadcast. Then create a new broadcast, bind it to your live stream, and continue with the testing process.As noted in the
liveBroadcasts.transition
method's documentation, you should confirm that the value of thestatus.streamStatus
property for the stream bound to your broadcast isactive
before calling that method.... <看更多>
相關內容