VideoView is not displayed on a Fragment

后端 未结 3 924
走了就别回头了
走了就别回头了 2021-02-14 04:43

I have a problem in running a video in Samsung S3(Android 4.1.1), the issue seems to be because the videoview is on a fragment because if I put it on and activity, it works. Als

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-14 05:31

    Move MediaController mediaController = new MediaController(getActivity()) from onResume() to onCreateView.

提交回复
热议问题