javascript - Check if YouTube video is live or uploaded -


i have youtube live event. able play video using youtube iframe player api. want know if there way can find if video live event video or regular uploaded video. need information designing controls.

the way can (currently) youtube backend api. data video based on id , in response have property snippet.livebroadcastcontent either live, none, or upcoming.


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -