muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.66k stars 3.95k forks source link

Single webm video / audio file playback issue #234

Open pitrackster opened 10 years ago

pitrackster commented 10 years ago

Hy!

First I would like to thank you for the great job on this library!

Using it with firefox 30 my problems are:

I can see your demo has the same problems...

Do you have any idea of what is causing this behaviors ? Weird thing is that the same video is playing well on Chrome (v34).... (you can replay it and navigate through video using the video player slider).

Regards. Patrick

PS : I'm using RecordRTC.js last version (Last time updated at June 14, 2014, 08:32:23)

muaz-khan commented 10 years ago

Its easy to support playback by recreating the blob-uri:

stopRecording.onclick = function () {
    window.audioVideoRecorder.stopRecording(function (url) {
        video.src = url;
        video.onended = function () {
            video.autoplay = false;
            video.pause();

            // dirty workaround for: "firefox seems unable to playback"
            video.src = URL.createObjectURL(audioVideoRecorder.getBlob());
        };
    });
};

I don't know why Firefox media element's position slider fails to set currentTime attribute.

pitrackster commented 10 years ago

It's working like a charm ! Thanks for the tip ;)

It seems that the duration of the video (webm sound + video recorded via firefox) is undefined... maybe that's why position slider fails to set currentTime attribute ?

Regards.

cirocosta commented 9 years ago

I think this is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1068001