I am using JW Player to play videos. But its throwing Error loading player: HTML5 player not found.
My Code:
<%= jwplayer_assets %>
<div id="mediaplayer", align="center">
</div>
<script type="text/javascript">jwplayer.key="wjl6yMFUQPDP";</script>
<script type="text/javascript">
jwplayer("mediaplayer").setup({
flashplayer: "<%= asset_path('player.swf') %>",
file: "<%=@video_url%>",
height: 360,
width: 640
});
</script>
please help me to solve this problem.
Here is a working copy.
You can clone or download it as zip file
https://github.com/shamsulsham89/jwplayer-rails3.2
and run it on your system. But update the browser to latest version so that it supports the html5 otherwise it will throw error.
Steps to run:
1> bundle install
2> rails s
Go to the show page after starting rails server from index page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With