1
當我在Google TV 3.2上使用帶有像http://example.com/video.mp4這樣的URL的VideoView時,播放視頻,但如果我將URL更改爲https://example.com/video.mp4,VideoView會彈出一條消息,此視頻無法播放。「谷歌電視不是通過https播放,但可以播放http
有什麼特別的我需要在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();
請分享您使用的視頻網址。 –