jplayer Playback Rate not working on mozilla firefox v29

213 views
Skip to first unread message

Manish Gautam

unread,
May 5, 2014, 8:21:17 AM5/5/14
to jpl...@googlegroups.com
I tried implementing playback rate on jplayer. The playback rate works fine on google chrome browser but it's not working on Firefox version29.

I am using jplayer v2.6.

Here is my code :

var myControl = {
        playbackRate : $(".jp-playback-rate-bar")
        };
       
myControl.playbackRate.slider({
            animate: "fast",
            max: 4,
            range: "min",
            step: 0.1,
            value : $.jPlayer.prototype.options.playbackRate,
            slide: function(event, ui) {
                console.log(ui.value);
                $("#player").jPlayer("option", 'playbackRate', ui.value);
            }
    });
      
 $("#player").jPlayer({
            ready: function() {
                if (playfirst == 'I')
                {
                    $(this).jPlayer("setMedia", {
                        mp3: $('#' + id).attr('link')
                    }).jPlayer("play")
                            .jPlayer("mute");
                }
                else if (playfirst == 'C')
                {
                    $(this).jPlayer("setMedia", {
                        mp3: $('#' + id).attr('link')
                    }).jPlayer("play")
                            .jPlayer("pauseOthers");
                }
                else
                {
                    $(this).jPlayer("setMedia", {
                        mp3: $('#' + id).attr('link')
                    }).jPlayer("play")
                            .jPlayer("pauseOthers");
                }
            },
            ratechange: function(event) {
                myControl.playbackRate.slider("value",event.jPlayer.options.playbackRate);
            },
            ended: function() {
                var songduration = $('.jp-duration').text();
                var wait = converttimetosecond(songduration);
                wait = wait * intervaltime;
                if (intervaltime == 0)
                {
                    setTimeout(changeSongwidinterval, 2000);
                }
                else
                {
                    setTimeout(changeSongwidinterval, (wait));
                }
            },
            cssSelectorAncestor: "#jp_container",
            volume: 100,
            swfPath: "<?php echo swf_url(); ?>",
            supplied: "mp3",
            wmode: "window",
            smoothPlayBar: true,
            keyEnabled: true,
            solution:"html, flash"
        });
       
    }


Mark

unread,
May 6, 2014, 5:08:48 AM5/6/14
to jpl...@googlegroups.com
Sanity check. Does this work for you? http://jsbin.com/UGIxoJis/1

On Ubuntu Firefox 29 I'm finding the audio works but the video stops halfway through if you increase the rate - but that is probably something to do with GStreamer (the underlying tech on Ubuntu playing the MP4), as I don't see the same issue with WebM only.

Worth trying with audio too.

Mark B


--
You received this message because you are subscribed to the Google Groups "jPlayer: HTML5 Audio & Video for jQuery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jplayer+u...@googlegroups.com.
To post to this group, send email to jpl...@googlegroups.com.
Visit this group at http://groups.google.com/group/jplayer.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages