I hate using these because I can never find a tutorial for them.
I have a jPlayer
that I am trying to use to play .flv
video files. I have been looking for a tutorial on how to use jPlayer
but everything I can find is either complete garbage, or does not show any code what so ever, just the end product (very helpful, I know).
Here is how I make my jPlayer
:
//Creates the JPlayer for that video
$('#videoPlayerDiv').jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
flv: videoLocation
}).jPlayer("play");
},
supplied: "flv",
swfPath: "jPlayer/js"
});
videoLocation
is a location to each video file. I have already tested the location and it is correct. When I run the page I get the video box to show up, but I cannot get it to play, or show any video file location.
If anyone can find an issue (or a tutorial) that would help me out a lot.
Try this:
$('#videoPlayerDiv').jPlayer({
ready: function () {
this.element.jPlayer("setFile","path/to/flv/video/file.flv");
}
});
EDIT: OP decided to use flowplayer instead of jPlayer.