Search code examples
jqueryrtmpjplayer

JPlayer rtmp streaming issue


I am trying to play mp3 stream sample via rtmp with Jplayer (patched https://github.com/rmhall/jPlayer to allow rtmp). My code is here:

$('#jquery_jplayer').jPlayer({
            swfPath: "/Scripts/JPlayer/",
            supplied: "rtmpa, rtmpv, mp3",
            solution: "flash",
            ready: function () {
            $(this).jPlayer("setMedia", {
                    rtmpa: "rtmp://limelight-fmstream-70.musicnet.com/a4396/e1/mp3:/spl/068/771/139/spl_024?e=1342014373&h=0dc0153ed7fb0ff34d04fce764de9896" //this is not work
                    //THIS WORKS! rtmpv: "rtmp://cp67126.edgefcs.net/ondemand/mp4:mediapm/ovp/content/test/video/spacealonehd_sounas_640_300.mp4"
                });
                $(this).jPlayer("play");       
            }
        });

if I am playing rtmpv video it works, but this audio(rtmpa) doesn't work(doesn't play anything). I tested this mp3 on http://widgets.mndigital.com/test/stream.aspx and it works there.

Anybody can help me? Thanks


Solution

  • It seems JPlayer (https://github.com/rmhall/jPlayer ) has issues with RTMP audio playback. I suggest to use JWPlayer instead of it.