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).





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

Library: jMediaView.b4xlib
Example: MediaView.zip



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: 172
  • MediaView.zip
    3.2 KB · Views: 173
Last edited:

T201016

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

T201016

Active Member
Licensed User
Longtime User
Great. We are waiting for the published version of the library
 

TILogistic

Expert
Licensed User
Longtime User
Mediaview for B4J is now available for download. If you have any queries, please post them in this post.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…