Error loading media: File could not be played error in jw_player rails

前端 未结 1 1766
耶瑟儿~
耶瑟儿~ 2020-12-20 00:14

I am using the below mentioned code to play a video from my local disk. But its not working instead of that it\'s throwing Error loading media: File could not be played erro

1条回答
  •  -上瘾入骨i
    2020-12-20 00:21

    Download jwplayer from http://www.longtailvideo.com/jw-player/download/

    Put these files to the particular directory:-

    • app/assets/jwplayer/jwplayer.flash.swf
    • vendor/assets/javascripts/jwplayer.js
    • vendor/assets/javascripts/jwplayer.html5.js

    Then add these line in application.js

    //= require jwplayer
    //= require jwplayer.html5
    

    On the page where you are playing video, add these lines

    
    
    Loading the player ...

    https://account.longtailvideo.com/#/account from where you can get your Self-Hosted Player License Key (YOUR_JWPLAYER_KEY) in signing up from Get Your License Key portion.

    Take a look https://github.com/shamsulsham89/jwplayer-rails3.2

    Please test it first on Chrome Version 30

    0 讨论(0)
提交回复
热议问题