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
Post a Comment