Introduction to Facebook stream
In the following we will publish a live event stream on Facebook.
- A video device (camera) and an audio device (microphone) connected with the Adobe Flash Media Live Encoder (referred here as FMLE) or alternatively with the Wirecast, the Open broadcaster or the FFmpeg.
- The CDNsun account (the most important ;))
Create a CDN Live service
- Go to Services → New Service → Live.
- Pick a CDN Service Domain. Please note that it can be any valid domain name. We have picked facebook-test.cdnsun.com.
- Select Internal from the Publishing Point select box.
- Select 2 PoPs (servers for ingest) close to you. You will be pushing your ingest stream from your live encoder (FMLE) to the PoP and to the Failover Origin PoP (serves as a backup).
- Click on the Create Service button and you will be redirected to the CDN service how-to page.
Connect FMLE to CDN Live
- On the Services → How-To page you will find your FMS URL, Backup FMS URL, username and password.
- Fill in the FMS URL and the Backup FMS URL to your FMLE and pick some stream name. We have picked live. Also make sure that the video format is H.264 and the audio format is AAC or MP3.
- Click on the Connect button and fill in your username and password.
- Click on the OK button and your FMLE is now connected to your CDN Live service. Encoding does not need to be started at this moment.
Create a hosted CDN player
- Go to Services → Media → Content and create a media content corresponding to your live stream. Notice the /live in the Media Path field, it corresponds to the stream name you have picked in your FMLE.
- Go to Services → Media → Players and create a media player.
- Finally go to Services → Media → Publish and generate a URL with your hosted player.
Publish on Facebook for live streaming
- Click on the Start button in your FMLE and start publishing your live event stream.
- Copy the player URL and paste it on Facebook.
- Click on the play icon and your live event stream is live on Facebook!
- The stream is published over RTMP protocol so it can be played only on Flash compatible devices such as PC. The stream will not play on iOS devices. We do support Apple’s HLS protocol but currently it is not supported for playback on Facebook.