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...
Sorry for asking... is that a streaming server you are running..?? maybe you must open some ports... first check with a other player... like VLC, Windows Media Player... etc..
I have seen a solution, but it is necessary to install the vlc player, and I do not see it very convenient since the final application is for my clients
I am pleased to publish a B4J-wrapper/library of Vlcj (version 3.10.1) which in turn is a Java-wrapper of VLC (VideoLAN). With this wrapper, we can use VLC as a MediaPlayer in B4J. I guess most of you are already familiar with VLC. Its strength is that it plays (local and in streaming) nearly...
www.b4x.com
3) Edit the source code - of his demo and replace these subs with:
Sub btnPlay_Action
B4X:
Sub btnPlay_Action
'If MediaFile <> "" Or MediaFile.Length > 0 Then
StopAndPlayMedia
'Else
' Log("no media file selected")
'End If
End Sub
sub StopAndPlayMedia
B4X:
Sub StopAndPlayMedia
If vlc.IsPlaying Then
vlc.Stop
End If
ShowDragButtons(False)
vlc.Play("rtmp://161.97.64.221/adictos/tutorial")
vlc.SetVolume(50)
VolLevel = 50
'Note: you can also play streaming media sources
'vlc.Play(http://www.storiesinflight.com/js_videosub/jellies.mp4)
End Sub
I have seen a solution, but it is necessary to install the vlc player, and I do not see it very convenient since the final application is for my clients
I am pleased to publish a B4J-wrapper/library of Vlcj (version 3.10.1) which in turn is a Java-wrapper of VLC (VideoLAN). With this wrapper, we can use VLC as a MediaPlayer in B4J. I guess most of you are already familiar with VLC. Its strength is that it plays (local and in streaming) nearly...
www.b4x.com
3) Edit the source code - of his demo and replace these subs with:
Sub btnPlay_Action
B4X:
Sub btnPlay_Action
'If MediaFile <> "" Or MediaFile.Length > 0 Then
StopAndPlayMedia
'Else
' Log("no media file selected")
'End If
End Sub
sub StopAndPlayMedia
B4X:
Sub StopAndPlayMedia
If vlc.IsPlaying Then
vlc.Stop
End If
ShowDragButtons(False)
vlc.Play("rtmp://161.97.64.221/adictos/tutorial")
vlc.SetVolume(50)
VolLevel = 50
'Note: you can also play streaming media sources
'vlc.Play(http://www.storiesinflight.com/js_videosub/jellies.mp4)
End Sub
hi.
the solution was to install a library on the server in which the source of the
origin is rtmp and converted to hls, using nginx and ffmpeg for
the broadcast.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.