在Xamarin视频播放器中播放Google Drive视频

时间:2018-10-25 03:11:40

标签: xamarin xamarin.forms google-drive-api google-photos-api

我正试图从Google云端硬盘和Google照片中获取视频,并在 xamarin视频播放器中播放。但不幸的是,它无法流式传输。

以下是我的Google云端硬盘回复:

{
"iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/video/mp4",
"id": "xxxxxxxxxxxxxxxxxxxxxxxx",
"modifiedTime": "2018-02-11T09:13:58.545Z",
"name": null,
"originalFilename": "VID_20180208_140349.mp4",
"thumbnailLink":https://lh3.googleusercontent.com/xxxxxxxxxxxxxxxxxxxxxxxx=s220",
"webContentLink": "https://drive.google.com/uc?id=xxxxxxxxxxxxxxxxxxxxxxxx&export=download",
"webViewLink": "https://drive.google.com/file/d/xxxxxxxxxxxxxxxxxxxxxxxx/view?usp=drivesdk",
"writersCanShare": null,
"ETag": null
}

以下是我的Google照片回复:

{
  "mediaItems": [
    {
      "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "productUrl": "https://photos.google.com/lr/photo/xxxxxxxxxxxxxxxxxxxxx",
      "baseUrl": "https://lh3.googleusercontent.com/lr/xyzzyyvvkdkkkvgkkfd",
      "mimeType": "video/mp4",
      "mediaMetadata": {
        "creationTime": "2018-02-08T23:41:20Z",
        "width": "640",
        "height": "360",
        "video": {
          "fps": 29.970029970029969,
          "status": "READY"
        }
      },
      "filename": "videoplayback.mp4"
    }
  ]
}

我正在关注以下教程 https://developer.xamarin.com/samples/xamarin-forms/customrenderers/VideoPlayerDemos/

我想在 xamarin播放器中流式传输视频。请帮助我

谢谢

0 个答案:

没有答案
相关问题