High everyone;
What is the code that plays a remote url video in the device stock video player ?
PhoneIntents.PlayVideo is good for local video file, but how to play remote streaming video without saving it?
You're probably using the old and deprecated vitamio-wrapper which indeed required an "extra" install.
Unless you have codec-problems, try to use VideoVideo included in the standard Audio-library.
Sub playVideo(vid As String)
Dim In As Intent
In.Initialize(In.ACTION_VIEW,vid)
In.SetType("video/*")
If In.IsInitialized Then StartActivity(In)
StartActivity(In)
End Sub
Then call it as:
B4X:
playVideo("url address of video file")
It is great; but i want it to play the video directly inside the android stock video player ...
Unsure if you want to use an external player or use a videoview embedded in your app??
If you want to use videoview embedded in your app, then use the code suggested by @somed3v3loper in one of the earlier posts
Make sure to tick the audio-library in the library pane on th right in the ide.
Then probably the video-codec in use is not supported natively by Android.
You can probably resolve by using one of the alternative VideoView wrappers available here in the forum (Search for Vitamio5, vlcb4a, FFmpeg_b4a)