mrmaffen / vlc-android-sdk

VLC Android SDK pushed to Maven Central. Primarily used in project tomahawk-android.
792 stars 244 forks source link

MediaPlayer stop() cause freezing app #74

Open nguyenhoanglam opened 7 years ago

nguyenhoanglam commented 7 years ago

Whenever I call stop() method of MediaPlayer class, the app was freezing in about 20 seconds. This is a bug or I did something wrong?

baralgin1003 commented 7 years ago

I have that bug too. I tried to use mMediaPlayer.release(). dont helped

danriza commented 7 years ago

Same problem here too. In 1.9.8 version this did not occur

baralgin1003 commented 7 years ago

Version 2.1.0 works good

danriza commented 7 years ago

But it is not available via gradle, or is it ?

baralgin1003 commented 7 years ago

Not via gradle. I connected via module. Later i give work link.

danriza commented 7 years ago

@baralgin1003 Please do ! Any help will be much appreciated

baralgin1003 commented 7 years ago

@danriza open that project and compile https://github.com/leeib/vlc-android-2.1.0 (in android studio under Windows) Then return into your project and go File-New-Import module, select folder libvlc and import this in your project. In build.grade add compile project(':libvlc') profit

nguyenhoanglam commented 7 years ago

@baralgin1003 I've tried vlc 2.1.0 but there's a issue with SurfaceView. When I stream video with MJPEG url, the SurfaceView' content was scaled down (not scaled to fill its specific size). This issue did not occur when streaming with MP4 url. However, when I use version 2.0.6, the SurfaceView's issue is gone. What's wrong with MJPEG in version 2.1.0?