EricssonResearch / bowser

A WebRTC browser for iOS developed in the open
BSD 2-Clause "Simplified" License
208 stars 65 forks source link

Error using RecordRTC to record videos using getUserMedia #33

Open leonardolondono opened 9 years ago

leonardolondono commented 9 years ago

Hi, Hopefully you can help me to solve my issue

I saw the main problem is when the library tries to take the picture of the canvas, canvas.toDataURL('image/webp') it returns a 'image/png'. For that reason it's impossible to create a video. I had to create a gif but again the gif is not shown in Bowser al least the blob:url gif (and it doesn't have sound).

Could you tell me how I can record a video with sound using a video format that I can use to upload to youtube?

Thank you

Leonardo

Mido22 commented 9 years ago

canvas.toDataURL is returning png image, might be because webp format is not supported, just like in the case of firefox, but even if webp was supported, you would still end up with a video without sound. Currently, I am recording and uploading the video and audio separately and uploading to server, merging them there. (you can do the additional step of uploading to server from there.)