2
votes

I have a WebRTC application which I am using for video chat.

I need to provide a 'Store video' button which basically takes the user's stream and stores it in YouTube. I have tried live streaming as well as video upload APIs of YouTube but somehow they are not working.

Am I using the correct approach? Between live streaming and video upload which is correct to use? Is there some other way I can store this?

1
Please show some code. - user1064248

1 Answers

4
votes

There are two ways to store WebRTC video on youtube:

1) Record the WebRTC stream in a file mp4 or webM and upload this file on youtube using an youtube API.

2) Convert the WebRTC stream in real-time to RTMP H.264+AAC and push the result stream to youtube how it does an RTMP live encoder.