MediaPlayer

BPak

Active Member
Licensed User
Longtime User
I was running the Media Player in the Emulator and it works fine.

I added some lines to the code to output messages to the LogCat.

Used ALT + 3 to update the app.

I noticed the Duration was not 2:53 as originally shown. Is that meant to always be 2:53? (See Image)

I also clicked the Position Bar to indicate the Button should move back and in so doing replay from that position. A Warning Message was displayed (See 2nd image).

Is more coding needed with UserChanged for this to be error free in the following sub? :-

B4X:
Sub barVolume_ValueChanged (Value As Int, UserChanged As Boolean)
   MediaPlayer1.SetVolume(barVolume.Value / 100, barVolume.Value / 100)
End Sub
 

Attachments

  • mmedia.PNG
    mmedia.PNG
    3.7 KB · Views: 170
  • mmedia2.PNG
    mmedia2.PNG
    16.2 KB · Views: 210
Top