I thought I would knock up a video preview prog using the jMediaView from @TILogistic.......
Unfortunately I seem to be doing something dumb. The example works fine using his URL but when I construct a URI for a local file I consistantly get the error:
The URL works but the URI does not. What am I doing wrong here?
Unfortunately I seem to be doing something dumb. The example works fine using his URL but when I construct a URI for a local file I consistantly get the error:
file:/C:/Users/Richard/Desktop/New_Foxes/New.MP4
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
HALTED
ERROR: MediaException: PLAYBACK_HALTED : Failed to link AV parser to video bin!
The URL works but the URI does not. What am I doing wrong here?
jMediaView Example:
'Dim VideoContent As String = "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8" 'This line plays fine
Dim VideoContent As String = File.GetUri("C:\Users\Richard\Desktop\New_Foxes\","New.MP4") 'This one halts with error
Log(VideoContent)
MediaViewController1.SetMediaView(MediaView1)
MediaView1.Source = VideoContent
MediaView1.Play