【问题标题】:play video in videoview where source is Google Drive shared link (https)在 videoview 中播放视频,其中来源是 Google Drive 共享链接 (https)
【发布时间】:2017-06-04 11:53:38
【问题描述】:

使用 VideoView 控件播放驻留在 Google Drive 上的视频的正确方法是什么?

【问题讨论】:

    标签: android google-drive-api android-videoview


    【解决方案1】:

    尝试使用 Drive 中视频的 url 格式并显示在Android WebView

    Uri uri = Uri.parse("https://drive.google.com/file/d/VIDEO_ID/view");
     Intent intent = new Intent(Intent.ACTION_VIEW, uri);
     startActivity(intent);
    

    您也可以查看此SO post 以了解其他解决方法。

    【讨论】:

      猜你喜欢
      • 2021-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多