文件名称:AudioPlayer
文件大小:2KB
文件格式:JAVA
更新时间:2018-12-25 05:56:13
apollo
Has anyone tried playing the video with VideoView and MediaController? I tried but without much luck. I did notice however that when instantiating MediaController, the compiler requires you to put in two parameters MediaController(Context,Token). It is odd because the developer Android page did not list any constructor requiring this signature. I suspect that it requires min API of 21? I had to create a new MediaSession and use getSessionToken to get the code to pass. Anyone know how to use VideoView & MediaController to play the video?