I googled and I found jPlayer for playing video content over the net. But jPlayer does not play .flv (flash video) files. I mentioned path correctly for swf player. it is inside the js folder and js folder is at the same lever where my example.html code file is. my code is as below example.html
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4v: "media/royalrumble.mp4",
flv: "media/royalrumble.flv",
poster: "media/royalrumble.jpg"
});
},
swfPath: "js",
supplied: "m4v, flv"
});
The code below worked for me
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4v: "../media/royalrumble.mp4",
flv: "../media/royalrumble.flv",
poster: "media/royalrumble.jpg"
});
},
swfPath: "js",
supplied: "m4v, flv",
});
I dont know why? the media directory is at same lever where my code exists. still it does not accept
m4v: "media/royalrumble.mp4",
flv: "media/royalrumble.flv",
and
m4v: "../media/royalrumble.mp4",
flv: "../media/royalrumble.flv",
worked fine.
it means that path provided should be relative to jPlayer.swf file.