Google TV不是通过https播放,但可以播放http

时间:2012-05-18 15:28:52

标签: google-tv

当我在Google TV 3.2上使用VideoView并使用http://example.com/video.mp4等网址播放视频时,如果我将网址更改为https://example.com/video.mp4,则视频会弹出一条消息“抱歉,此视频无法播放玩了。“

我需要在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();

1 个答案:

答案 0 :(得分:-1)

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