Open nguyenhoanglam opened 7 years ago
Make sure onSurfacesCreated is actually being called. I ran into a similar issue as well. If onSurfacesCreated is never called, your media will never begin playing.
Also you don't necessarily need to release the player. You could just load a new Media object, set the media to the player, and then play the player.
@SaundersB Thanks for your guide. I'll try it now. By the way, VLC Android SDK still have some issues (stop MediaPlayer cause app freezed...)
When media player reach end of video, I call release method like this:
and then create a new media player to replay the video:
The problem is: although the media player is streaming correctly, the surfaceview still not displaying the video. I don't know why the surfaceview did not update video frame. Please help me!