I pressed the autoplay post on the forum and wanted to test autoplay
I'm in B4A, and I have a new default
Added the code,
I press Ctrl+B,and in the Conditional Symbols, add "SMM_VIDEOSMM_VIDEO“
but it says an error, it can't run
I don't know where I went wrong
Hope someone can help me
Thank you
[SMM] Autoplay
im using SMM to play a video. Is it possible to autostart the video and hide the control bar?
www.b4x.com
Added the code,
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("2")
MediaManager.Initialize
#if SMM_VIDEO
MediaManager.SetMediaWithExtra(pnlVideo,"https://bestvpn.org/html5demos/assets/dizzy.mp4", "", CreateMap(MediaManager.REQUEST_CALLBACK: Me))
Wait For (pnlVideo) SMM_MediaReady (Success As Boolean, Media As SMMedia)
Dim playerview As SimpleExoPlayerView = pnlVideo.GetView(0).GetView(0)
playerview.UseController = False
Dim player As SimpleExoPlayer = playerview.Tag
player.Play
#End If
End Sub
but it says an error, it can't run
I don't know where I went wrong
Hope someone can help me
Thank you