Im using Jplayer plugin, will it support rtmp videos?.I have the code below and it works *fine* with the videos in the local machine
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4v: "${urlvideo}",
ogv: "${urlvideo}",
webmv: "${urlvideo}"
}).jPlayer("play");
},
swfPath: "/etc/designs/myproject/clientlibs/img",
solution: toplayHtml ? "html" : "flash",
preload:"auto",
loop:true,
supplied: "webmv, ogv, m4v",
size: {
width: "${videoWidth}",
height: "${videoHeight}",
cssClass: "jp-video-360p"
}
});
});
if jplayer supports rtmp videos, do I need any code change in the above section like explicitly specifying rtmp keyword in the above code.
Thanks, Balaji.
You should be able just to add the supplied formats according to documentation on jPlayer site. This should work, I haven't tried it.
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4v: "${urlvideo}",
ogv: "${urlvideo}",
webmv: "${urlvideo}",
rtmpa: "${urlvideo}",
rtmpv: "${urlvideo}"
}).jPlayer("play");
},
swfPath: "/etc/designs/myproject/clientlibs/img",
solution: toplayHtml ? "html" : "flash",
preload:"auto",
loop:true,
supplied: "webmv, ogv, m4v, rtmpa, rtmpv",
size: {
width: "${videoWidth}",
height: "${videoHeight}",
cssClass: "jp-video-360p"
}
});
});
Source: http://jplayer.org/latest/developer-guide/#jPlayer-option-supplied