Cyber Junkie
Cyber Junkie

Reputation: 766

WebRTC P2P stream a youtube video

I started learning about the WebRTC and interested if the API could be used for peer-to-peer streaming of a Youtube video for example. I could not find any articles on this. Would it be possible to use the API to stream and synchronize a Youtube video to two people in real-time?

Upvotes: 0

Views: 1015

Answers (2)

Marklaim
Marklaim

Reputation: 30

You need an intermediary gateway to do that. I have read on this page you can convert WebRTC stream to RTMP H.264+AAC for YouTube Live.They use Flashphoner.

Upvotes: 0

sipsorcery
sipsorcery

Reputation: 30699

No you will not be able to use YouTube as a WebRTC peer. The media stream from YouTube will not be able to perform the STUN and DTLS exchanges or setup the required SRTP stream.

What you could do is write a custom application that acted as an intermediary between YouTube and WebRTC peers. The custom application would need to be able to pull the stream down from YouTube and then forward it to any WebRTC peers that connected to it.

Upvotes: 1

Related Questions