Hi everyone, a question I can play rtmp streaming in b4j
thanks
thanks
MediaView1.Source = "https://www.hellasnet.tv/rest.live.hn/trt2/playlist.m3u8"
Strange... wait I will search a little more..Caused by: java.lang.UnsupportedOperationException: Unsupported protocol "rtmp"
Sub btnPlay_Action
'If MediaFile <> "" Or MediaFile.Length > 0 Then
StopAndPlayMedia
'Else
' Log("no media file selected")
'End If
End Sub
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 agree...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
the ideal is to install a standalone application
Thank you!!!!1st) Download 64bit VLC from https://www.videolan.org
View attachment 129599
2) Download this library of member: moster67 and any file needed (JAR, all zips, libs, sourcecode of demo)
B4JVlcj (embed VLC MediaPlayer in your program/app)
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
..just hit "Play"...