Search code examples
javascriptfirefoxhtml5-videoweb-audio-api

<video>.playbackRate not working on firefox when using HTMLMediaElementSourceNode


As stated in the title, I have been running in an issue regarding the HTMLVideoElement when connected to the WebAudioAPI inside Firefox.

The following sample gives a minimal example reproducing the issue:

var video      = document.getElementById('video');
var ctx        = new AudioContext();
var sourceNode = ctx.createMediaElementSource(video);
sourceNode.connect(ctx.destination);
video.playbackRate = 3;
video.play();

As soon as the video element is connected to the audio pipeline, I cannot get the playbackRate setter to work anymore. I've been looking for a way to set this value somewhere inside the AudioContext or the HTMLMediaElementSourceNode objects but those classes do not seem to handle playback-rate on their own.

Please note that this sample works fine on Chrome. And I don't really see what seems to be the problem here.

Thanks


Solution

  • Already reported over the Firefox's bug tracker: https://bugzilla.mozilla.org/show_bug.cgi?id=966247