Muaz Khan

Results 209 comments of Muaz Khan

Did you try this demo? * https://www.webrtc-experiment.com/Screen-Capturing/ First parameter is required. It must be a function. ```javascript getScreenConstraints(callback_function); ```

You can try this: ```javascript var blobs = []; var recorder = RecordRTC(screenOrCamera, { type: 'video', timeSlice: 1000, ondataavailable: function(blob) { blobs.push(blob); } }); ``` And stop recording: ```javascript recorder.stopRecording(function()...

I'll fix it in the next release. Relevant: https://github.com/muaz-khan/RecordRTC/issues/536 My plans are: 1. Always createMediaStreamDestination even if there is no audio-track 2. Use createMediaStreamSource for every new audio-stream. Do not...

If you're loading mp3 from server (same-origin) then its easy to implement it. Do you want to record microphone+mp3+canvas?

You can use **this** project along with RecordRTC: * https://github.com/muaz-khan/RecordRTC

You can try this lib: https://github.com/muaz-khan/MultiStreamsMixer ```javascript connection.dontCaptureUserMedia = true; connection.attachStreams.push(videoAndScreenMixer.getMixedStream()); connection.openOrJoin('room-id'); ``` and it will work. *I'll add a demo as well.*

You must remove streams using [`onstreamended`](https://www.rtcmulticonnection.org/docs/onstreamended/) event listener. E.g. ```javascript connection.onstreamended = function(event) { var video = document.getElementById(event.streamid); if (video && video.parentNode) { video.parentNode.removeChild(video); } }; ``` Above code relies...

If you're using `addStream`: ```javascript connection.addStream({ screen: true, oneway: true, streamCallback: function(screen) { addStreamStopListener(screen, function() { connection.send({ screebEnded: true, streamid: screen.id }); var video = document.getElementById(screen.id); if (video && video.parentNode)...

Here is a demo that switches between video and screen: * https://rtcmulticonnection.herokuapp.com/demos/video-and-screen-sharing.html Video and screen are **NOT** shared at the same time, though. You either share screen or camera. **Advantage:**...

`connection.attachStreams` array is still containing old camera track. The screen track is never added or replaced in the `attachStreams` array. I'll fix and update the demo shortly.