Preparing to the test
1. For the test we use:
- the demo server at demo.flashphoner.com;
- the Two Way Streaming web app to publish streams;
- the Chrome browser and the REST-client to send REST queries.
Preparing to broadcasting to Youtube
2. Create a broadcast on Youtube (we assume you have activated the corresponding section in your Youtube account and successfully verified and approved the account). Copy the URL of the server and the stream key from the "Encoder settings" section:
3. In the WCS settings file, flashphoner.properties, add the following line:
rtmp_transponder_stream_name_prefix=
Restart WCS.
Running a broadcast from a web camera to the WCS server
4. Open the Two Way Streaming web application. Click the Connect button, then specify the stream key from Youtube under the "Local" window, then click Publish:
Stream republishing configuration
5. Open the REST client. Send the /push/startup query to the WCS server and in the query parameters specify the stream key in the "streamName" parameter and the Youtube server URL in "rtmpUrl":
Checking if Youtube receives the stream
6. On the broadcast settings page click "Advanced". On the advanced settings page, in the right corner click "View on Watch page" button:
7. The watch page opens: