목록mediaplayer (1)
Foggy day

This article is an simple example of mediaplayer using surfaceview. The reason that i make this sample, it is to play video without audiofocus. If you use VideoView, it catch audiofocus. But MediaPlayer doesn't catch audiofocus. Video 1. add video file Add video file in res -> raw. In my case, video file is mp4 type. 2. draw xml. All you need is a SurfaceView 3. wirte code Somethings you need ar..
Android
2021. 2. 17. 00:05