Add live stream url, access token and listeners
Live stream with listeners
Connecting online and offline communities together All across the globe, there are over 2.19 Billion Facebook users. It has served as a community for connecting people together. But in a developing nation like ours internet is not always accessible and that sometimes pose a challenge to people. Live-Offline lets you connect to Facebook Live streams, without connecting to the internet by making at PSTN network. To give an example, I'm part of the Facebook's developer community and they hold live events but if i am not able to attend it due to no internet connection, it can still give me an opportunity to not to miss out on anything. This can also be used to reach users in remote areas where there is limited internet connectivity.
What it does
Live-in lets you listen in to users which go live on Facebook on normal call. It lets you connect to a community and we'll add a number (subscriber) and it will connect them to live videos from across one community, using any mobile device with no requirement of internet.
How we built it
By taking the live stream and then extracting the audio we send it to the VoIP server (Currently using NEXMO API but can set up our own server to connect to PSTN). The app asks for the RTMP URL of the live video and numbers you want to add to the subscription and then the NEXMO API calls them to connect to the live stream.
Challenges we ran into
Getting the audio from the RTMP stream was particularly difficult as Facebook API doesn't provide us with that so we had to develop a temporary solution to capture audio from the browser.
What's next for Live-Offline
Live-Offline is next set to step out of the community to a user to user system so you can connect to any individual online in your friend's circle, pages, groups or communities. Furthermore, we could deploy this to connect users to Messenger Video/Audio calls. Being a user, there is difficulty in accessing Messenger Calls and hence, this project is on hold.
We have currently tested it with NEXMO API. For extending its use we need to set up our own VoIP server which would take time and investment.