muaz-khan / WebRTC-Scalable-Broadcast

This module simply initializes socket.io and configures it in a way that single broadcast can be relayed over unlimited users without any bandwidth/CPU usage issues. Everything happens peer-to-peer!
https://rtcmulticonnection.herokuapp.com/demos/Scalable-Broadcast.html
532 stars 142 forks source link

who teacher could give us a sample for screen+audio on firefox. #16

Closed Jackie2016 closed 8 years ago

Jackie2016 commented 8 years ago

hi,our teacher,muaz scaleable broadcast is a great job for us.i try my best to write my test code based on https://rtcmulticonnection.herokuapp.com/demos/Scalable-Broadcast.html for screen+audio funciton. i start from this sample,it is just because i want replace video stream with screen stream and i also want to save screen+audio stream to a webm file after stoping the streamming,it is similar with Scalable-Broadcast.html.i change connection.session = { audio: true, video: true, oneway: true }; replace video:true with screen:true and i could not get screen stream by firefox. i am not familiar with webrtc.could any leader give me a sample for screen+audio.i am appreciated. thanks

muaz-khan commented 8 years ago

Here is an audio+screen demo which works both on Chrome 50+ (Canary/Beta) and Firefox:

For Chrome 50+ (Canary/Beta), it requires this Chrome extension:

To use same technique in the scalable-broadcast demo, please set this object:

connection.session = {
   audio: true,
   screen: true,  // ---- this line MUST be "screen"
   oneway: true
};