MediaPlayer - Initialize2

myriaddev

Active Member
Licensed User
Longtime User
Hi. I noticed Initialize2 in MediaPlayer V.1.45 and (docs
need updating in HelpViewer) I need a quick example on
how to use Initialize2. Great product!
Jerry
 

Gary Milne

Active Member
Licensed User
Longtime User
If you want to handle the new Complete event then you should use Initialie2.
Example:
B4X:
Dim mp as MediaPlayer
mp.Initialize2("mp")
...

Sub mp_Complete

End Sub

If anyone is following in my footsteps I just found out that the EventName is case sensitive. The case in the Initialize2 statement must match the case in the start of the Sub.
 
Upvote 0
Top