Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How to use jwplayer to play video from database


I am struggling with playing video with jwplayer I works fine when I put the file source in file attribute as below in the code but how can I use it to read video path from database and play it
this the code
<script type="text/javascript" src="jwplayer/jwplayer.js"></script>
<script id="aa" type="text/javascript">
jwplayer("video1").setup({
skin:"jwplayer/five.xml",
flashplayer: "jwplayer/player.swf",
file: "video/video1.mp4",
// primary: "flash"
});
window.jwplayer = jwplayer;
</script>
Also I tried this but could not work
<script type="text/javascript" src="jwplayer/jwplayer.js"></script>
<video class="jwplayer" src="video/video1.mp4"></video>

2- my second problem is when I play video and when I skip playing ahead it stops and get stuck


please help
Thanks very much in advance

1 Community Answers

Todd

JW Player Support Agent  
0 rated :

1) You would need to insert the video URL from your database in the file: ’’ parameter

2) That sounds like more of an issue with the server hosting your videos. Do you have byte range requests enabled? Please see the Configuring Your Server section of https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW6 for more details.

This question has received the maximum number of answers.