This library includes two custom views: MediaView and MediaViewController.
MediaView can play local and remote videos and music.
The native JavaFX MediaView doesn't include a controller interface. I've implemented one. You can use it or create your own. Tip: the controller code and layout are inside the b4xlib file.
Usage:
Add the two custom views and connect them:
B4X:
MediaViewController1.SetMediaView(MediaView1)
Set the video source.
B4X:
MediaView1.Source = "https://player.vimeo....
Use File.GetUri to play a local file.
Tip: the simplest way to create a MediaView is with SimpleMediaManager: https://www.b4x.com/android/forum/threads/134716/#content
Updates
v1.02 - Fixes an issue with setting the volume.
v1.01 - Fixes a layout issue.
Attachments
Last edited: