Javascript JWPlayer从https(其他域)而不是本地文件嵌入

Javascript JWPlayer从https(其他域)而不是本地文件嵌入,javascript,html,video,jwplayer,Javascript,Html,Video,Jwplayer,我尝试通过以下过程使用jwplayer: 文件名:test.html 内容: jwplayer.key=“encryptedKey”; 正在加载播放器。。。 jwplayer(“容器”).setup({ 文件:“myFile.mp4”, 身高:400, 宽度:630, 图片:“preview.jpg”, 模式:[{type:“html5”},{type:“flash”,src:myFile.mp4“},{type:“下载”}]}); 我已经将加密密钥与我自己的密钥一起使用,并且它可以工作 但

我尝试通过以下过程使用jwplayer:

  • 文件名:test.html 内容:
  • 
    jwplayer.key=“encryptedKey”;
    正在加载播放器。。。
    jwplayer(“容器”).setup({
    文件:“myFile.mp4”,
    身高:400,
    宽度:630,
    图片:“preview.jpg”,
    模式:[{type:“html5”},{type:“flash”,src:myFile.mp4“},{type:“下载”}]});
    
  • 我已经将加密密钥与我自己的密钥一起使用,并且它可以工作

  • 但当我从:

  • file:myFile.mp4
    src:myFile.mp4

    文件:http://openload.co/embed/h5t8uqOn9Os/Ozzy_2016.avi.mp4
    src:http://openload.co/embed/h5t8uqOn9Os/Ozzy_2016.avi.mp4


    为什么无法加载,警告是:“文件无法播放”

    您是否尝试过
    src:www.openload.co/embed/h5t8uqOn9Os/Ozzy_2016.avi.mp4
    而不是
    http
    ?两种方法都尝试过,但都没有得到好的结果!为什么是因为跨域的?我想知道。。。
     <script type="text/javascript" src="jwplayer-7.8.7/jwplayer.js"></script> 
    <script>jwplayer.key="encryptedKey";</script>
      <div id="container">Loading the player ...</div> 
    
      <script type="text/javascript"> 
       jwplayer("container").setup({ 
        file: "myFile.mp4", 
        height: 400, 
        width: 630, 
        image: "preview.jpg", 
        modes: [ { type: "html5" }, { type: "flash", src:myFile.mp4" }, { type: "download" } ] });
      </script>