Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Video 一些google drive mp4文件没有在jwplayer中播放_Video_Ffmpeg_Google Drive Api_Html5 Video_Jwplayer - Fatal编程技术网

Video 一些google drive mp4文件没有在jwplayer中播放

Video 一些google drive mp4文件没有在jwplayer中播放,video,ffmpeg,google-drive-api,html5-video,jwplayer,Video,Ffmpeg,Google Drive Api,Html5 Video,Jwplayer,我正在努力播放谷歌硬盘上的mp4视频,但我面临的问题是,一些mp4文件播放得很好,而一些mp4文件在出现“文件未找到”错误时根本无法播放 这就是我正在做的。 链接: 我的代码是: jwplayer("player_embed").setup ({ file: "https://docs.google.com/uc?id=0BwnSGB-C8mEGUmY2U1dhcVNiWjQ", type: "mp4", primary: "flash",

我正在努力播放谷歌硬盘上的mp4视频,但我面临的问题是,一些mp4文件播放得很好,而一些mp4文件在出现“文件未找到”错误时根本无法播放

这就是我正在做的。 链接:

我的代码是:

jwplayer("player_embed").setup ({
      file:   "https://docs.google.com/uc?id=0BwnSGB-C8mEGUmY2U1dhcVNiWjQ",
      type:   "mp4",
      primary: "flash",
      image: image_link,
      width:  950,
      height: 370,
      tracks:[{
        file: subtitle_link,
        label: "English",
        kind : "captions",
        default: "true",
      }] 
      });
是否有任何mime类型问题或其他我需要做的事情?
是否有其他播放器可以播放谷歌硬盘上的视频、字幕、图片海报?

这是视频的直接链接吗?如果此链接仅加载包含视频的页面,则在JW Player中不起作用。我无法看到您的视频直接在浏览器中加载链接,因此我不希望它在播放机中工作。

您如何获取链接?您是从谷歌硬盘手动复制还是通过代码构建?我从“共享链接”选项中获取,然后选择公共访问,然后复制链接。是的,它会加载其中的页面和视频。如何获得视频的直接链接?
jwplayer("player_embed").setup ({
      file:   "https://docs.google.com/uc?id=0BwnSGB-C8mEGUmY2U1dhcVNiWjQ",
      type:   "mp4",
      primary: "flash",
      image: image_link,
      width:  950,
      height: 370,
      tracks:[{
        file: subtitle_link,
        label: "English",
        kind : "captions",
        default: "true",
      }] 
      });