Android Question [SMM] Autoplay

Blueforcer

Well-Known Member
Licensed User
Longtime User
im using SMM to play a video.
Is it possible to autostart the video and hide the control bar?
 
Solution
B4X:
MediaManager.SetMediaWithExtra(Pane2, "https://bestvpn.org/html5demos/assets/dizzy.mp4", "", 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

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4X:
MediaManager.SetMediaWithExtra(Pane2, "https://bestvpn.org/html5demos/assets/dizzy.mp4", "", 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
 
Upvote 1
Solution
Top