1

当我在 Google TV 3.2 上使用带有http://example.com/video.mp4之类的 URL 的 VideoView 时,视频会播放,但如果我将 URL 更改为https://example.com/video.mp4,VideoView会弹出一条消息说“抱歉,无法播放此视频。”

我需要在 Google TV 上做些什么才能通过 https 播放视频吗?

这就是我播放视频的方式:

String mPath = "https://example.com/video.mp4";
mVideoView = (VideoView) this.findViewById(R.id.videoView1);
mVideoView.setVideoURI(Uri.parse(mPath));
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();
mVideoView.start();
4

1 回答 1

-1

确保您尝试从中流式传输的服务器支持 https。

于 2012-08-24T14:29:46.807 回答