B4J Code Snippet [FREE] New custom version of Mediaview library version 1.04 now available for download

New custom display version of MediaView and MediaController.

It is compatible with Simple Media Manager (SMM).

1733854292103.png


1733854405445.png


Library (b4xlib) attached for use, download in additional B4J libraries

Library: jMediaView.b4xlib
Example: MediaView.zip

1733854822882.png


B4X:
'    ***********  MediaViewController ***********

    'Example 1  
    MediaViewController1.SetBackgroundColor = xui.Color_ARGB(190,0,0,0)
    MediaViewController1.SetTextIconColor = xui.Color_White
   
    'Example 2
'    Dim Colors() As Int = Array As Int(xui.Color_Black, xui.Color_White)
'    MediaViewController1.SetBackgroundColorGradient(Colors, "BOTTOM_TOP")
'    MediaViewController1.SetTextIconColor = xui.Color_Black

    MediaViewController1.SetOnMouseOverVideo = True
   
'    ***********  MediaView ***********
   
    MediaView1.SetBackgroundColor = xui.Color_Black
    MediaView1.SetPreserveRatio = False

'    ***********  Visualize ***********

'   Video
    Dim VideoURL As String = "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8"

    MediaViewController1.SetMediaView(MediaView1)
    MediaView1.Source = VideoURL
    MediaView1.Play

Regards.
 

Attachments

  • jMediaView.b4xlib
    6.5 KB · Views: 168
  • MediaView.zip
    3.2 KB · Views: 171
Last edited:

T201016

Active Member
Licensed User
Longtime User
I wonder if the view of MediaController disappears after a fixed time?
 
Top