![](https://secure.gravatar.com/avatar/c00cfe54c64d6e38c2a5ed395284dfb3?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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