- clear the underlying
Surface
on API level 16+ when callingstopPlayback()
(see #15, thanks to @hithere1985)
- synced TextureVideoView with latest sources from Android 7.1.1_r13 (constructor improvements, code formatting)
- API addition: Call
setShouldRequestAudioFocus(true)
to programmatically disable audio focus request before opening a video file - default behaviour is unchanged and complies with the currentVideoView
implementation (see #14, thanks to @ezaquarii)
- fixed potential activity leak caused by AudioMananger on Android pre-6.0 devices (thanks to @hzsweers)
-
synced TextureVideoView with latest sources from Android 6.0.1_r10 (un-hides setVideoURI(Uri uri, Map<String, String> headers), uses proper audio focus, source code indention)
-
reverted to Android framework behaviour: OnCompletionListener may be called more than once again (see #6, thanks to @MrNovado)
This may break your code! The OnCompletionListener itself is now responsible for guarding any unwanted invocation.
- fixed a sizing bug when auto-starting the video with view size != video size (thanks to @lhunath)
- fixed potential activity leak when streaming videos over HTTP(S) (thanks to @koral)
- fixed potential leak by releasing surface when destroyed
- initial public release on github