MediaPlayerStream StreamBuffer Percentage

MDEnt

Member
Licensed User
Longtime User
I'm trying to create a ProgressBar for MediaPlayerStream StreamBuffer. I think I'm almost there - my audio files load and play fine - except my percentage keeps showing as -2147483648 in the log.

I am using the following code to see the percentage. Is there any way around this value to please the ProgressBar?

B4X:
Sub MPS_StreamBuffer(Percentage As Int)
   Log(Percentage)
End Sub
 

elitistnot

Member
Licensed User
Longtime User
Mediaplayerstream buffer percentage

I have found that when mediaplayerstream returns the number -2147483648 it seems to mean that the stream is live (and not a file) and a it can't not return a percentage (since I guess there is no percentage read off a live stream or something). When the stream is not live and is a file, like an MP3 file being streamed off a server then the percentage will show correctly (i.e. 20%, 30%, etc).

Anyway, that is the best I can figure out how mediaplayerstream does it's buffer percentage. Hope that helps.
 
Upvote 0
Top