MediaPlayer.Looping doesn't work

MrKim

Well-Known Member
Licensed User
Longtime User
B4A version 2.02

There is more code but this is the basics

B4X:
Sub Service_Start (StartingIntent As Intent)
    OtherMod.MP.Looping = True
    OtherMod.MP.Play
End Sub

It plays fine, Once, then stops.

I have it doing what I want with

B4X:
Sub MP_Complete
   OtherMod.MP.Play
End Sub

but shouldn't this loop on it's own?

Thanks,
Kim
 

stevel05

Expert
Licensed User
Longtime User
Have you tried putting:

OtherMod.MP.Play before
OtherMod.MP.Looping = True

I'm not sure it'll work but something I seem to remember in the back of my mind.
 
Upvote 0

MrKim

Well-Known Member
Licensed User
Longtime User
Seems to be working now.

I have no explanation as to why, but it is now working. I started moving things around. I may have had Looping in front of Load.

Thanks all for your suggestions.
 
Last edited:
Upvote 0
Top