I have an url of an mp3 file.
If I use mediaplayerstream I have to write all the code for a play,pause,stop, slider and so on.
If I use videoview I can add a view.
The strange behaviours:
The similar solutions on ios 9.3.1 and ios 7.x works perfectly.
Thanks.
In the screenshot you can view controls, but only for few seconds if I tip on the rectangular area on the top, as defined in addview.
If I use mediaplayerstream I have to write all the code for a play,pause,stop, slider and so on.
If I use videoview I can add a view.
B4X:
Sub Globals
Dim vv As VideoView
End Sub
Sub Activity_Create(FirstTime As Boolean)
...
vv.Initialize("vv")
Activity.AddView(vv, 0, 120, 100%x, 50)
End Sub
...
Sub btn_play(url)
vv.Stop
vv.LoadVideo("http",Url)
vv.Play
vv.MediaControllerEnabled=True
End Sub
The strange behaviours:
- On my samsung 3neo android 4.4.2 it works, and seems to start playing without loading the full mp3 file. But without the play button, the slider and so on. Only a black rectangular area. If I tip inside the area, the controls will appear at the bottom, and disappear after few seconds.
- If I put the area at the bottom, I can hear but no controls are available even if I tip inside the area.
The similar solutions on ios 9.3.1 and ios 7.x works perfectly.
Thanks.
In the screenshot you can view controls, but only for few seconds if I tip on the rectangular area on the top, as defined in addview.