Is there a way to get the current time of a the recorded stream when broadcasting to YouTube live? I want to be able to send an API request at certain points throughout a live stream to get the current minute/second of the stream. The end result I am trying to achieve is to be able to log a list of highlights. Essentially, a user presses a button and it gets the current time of the stream at that moment, then the user can add a note for what happened at that time. From reading all the docs though, I cannot find a way to get the current time of the recorded stream.
相关问题
- YouTube API refresh token revoked with 400 code “i
- Unable to Full Screen Youtube Video Inside Custom
- Thumbnails from the Vimeo website harder than YouT
- YouTube Data API v3 allowed referers for browser a
- Wait until page is loaded when using XMLHTTP appro
相关文章
- How to dynamically add wmode=transparent to Youtub
- Detect or Approximate Bluetooth Latency on Android
- YouTube Video in R markdown
- How to prevent YouTube js calls from slowing down
- How to display all YouTube videos from specific ch
- How to get the last 24 hours worth of videos from
- Target iframe if it is a YouTube embed
- Youtube Video Duration API v3 [closed]
Looks like you can do this with the iFrame API's
getDuration()
method.https://developers.google.com/youtube/iframe_api_reference#getDuration
Check out the special note for live events:
You didn't specify a language, so I'll post code examples in two different languages. Both utilize the iFrame API.
JavaScript:
Objective-C (using YouTube's youtube-ios-player-helper class)
Just as a disclaimer from my personal testing: the Live Streaming API is extraordinary temperamental and unstable, and I've found that some Live Events return a duration of 0.