视频没有显示在VideoView但我可以听到它的声音它的、但我、声音、视频

由网友(孤独的风景▲)分享简介:在我的按钮,点击我写了下面code从播放视频我的 SD卡(MP4)。 On my button click i wrote the following code for playing video frommy SDCARD (mp4).video_view = (VideoView)findViewById(R...

在我的按钮,点击我写了下面code从播放视频 我的 SD卡(MP4)。

On my button click i wrote the following code for playing video from my SDCARD (mp4).

video_view = (VideoView)findViewById(R.id.video_view);
video_view.setVideoPath("/sdcard/myvideo.mp4");
video_view.setMediaController(new MediaController(this));
video_view.start(); 

我可以从SD卡播放的播放器录制的视频。

这个能提高跨境电商转化率20 的方法绝对不要错过

I can play recorded video from SDCARD in player.

链接1

链接2

是否有人曾经面对过这样的问题?如果是的话那么它如何解决呢?

Is anybody ever faced this kind of problem ? If yes then how can it solve it ?

推荐答案

我已经想尽方法同上,但没有人可以工作。

I've tried every method above, but none of them could work.

最后,我想调用此函数,则视频出现。

Finally, I tried to call this function, then the video appeared.

video_view.setZOrderOnTop(true);

希望这也适用于你。

Hope this also works for you.

阅读全文

相关推荐

最新文章