Android Question How can I control the Autoplay of video in the web page?

winjiadh

Active Member
Licensed User
Longtime User
I follow the example code given by Erel, the test can be played, but if I change MP4 to the URL, it cannot be played,
B4X:
MediaManager.SetMediaWithExtra(Pane2, "https://tv.sohu.com/v/dXMvMzQ2NjQyMTAzLzM5NjQyNTc1NS5zaHRtbA==.html", "", CreateMap(MediaManager.REQUEST_CALLBACK: Me))
Wait For (Pane2) SMM_MediaReady (Success As Boolean, Media As SMMedia)
Dim playerview As SimpleExoPlayerView = Pane2.GetView(0).GetView(0)
playerview.UseController = False
Dim player As SimpleExoPlayer = playerview.Tag
player.Play
Running prompts the following error

Can a friend who knows help modify this code? Thank you so much!
 

winjiadh

Active Member
Licensed User
Longtime User
Before extracting the video URL, how can you play the video in these html pages directly in B4X?
Can a friend who knows help modify this code? Thank you so much!
 
Upvote 0

winjiadh

Active Member
Licensed User
Longtime User
Can anyone tell me how to change this code?
please
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…