thibaudgg / video_info

Get video info from Dailymotion, Vimeo, Wistia, and YouTube URLs.

Home Page:https://rubygems.org/gems/video_info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle live broadcasts (Youtube/Facebook)

vheuken opened this issue · comments

This has been discussed in #151 with @Brotakuu

  • .live_stream? function that returns whether or not the video is a live broadcast
  • .live_status function that returns a symbol reflecting the status or nil if it is not a live stream. Potential return values are :live, :upcoming, and :ended, though we should look into the info we can get from Facebook and Youtube first.
  • Need to figure out how to test, since a broadcast can't be live or upcoming forever.

Looks like facebook similarly has a live_status field that returns enum status of the video.

https://developers.facebook.com/docs/graph-api/reference/video/

Right. We'd need to find out exactly what it returns. I'll try to play with it tonight while I'm working on FB support.