javascript - Videos only playing on Chrome & Safari but not FF (RoR) -
javascript - Videos only playing on Chrome & Safari but not FF (RoR) -
so, i'm using jwplayer stream/play videos on web application. issue is, video player displays on chrome & safari, not on firefox.
below code video player in app:
<div class="left"> <div class="video-img"> <script src="http://jwpsrv.com/library/nu3cav_oeeku_rixoucpzg.js"></script> <div id='my-video<%= @clip.video.id %>'></div> <script type='text/javascript'> jwplayer('my-video<%= @clip.video.id %>').setup({ playlist: [{ image: "<%= @clip.video.thumbnail_url %>", sources: [ { file: "<%= video_url(@clip.video.remote_id, :smil) %>" }, { file: "<%= video_url(@clip.video.remote_id, :m3u8) %>" } ] }], primary: "html", width: '100%', rtmp: { bufferlength: 7 } }); </script> <%#= image_tag('video-img.jpg') %> </div> </div>
any help on getting video player display , work on firefox great, thanks!
javascript ruby-on-rails video ruby-on-rails-4 jwplayer
Comments
Post a Comment