Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
n_jay144
Posts: 68
Registered: ‎09-05-2012
My Device: Z10 Red, PlayBook, DevAlpha C
My Carrier: Play

Problem with Audio Player - OS6 and OS7

I have a problem with blackberry.audio.Player object on OS6-OS7 devices.

When I try to setup new time for mp3 file higher than 2147483ms player position returns to 0.

 

Sample code:

//New audio player

 var playerInstance = new  blackberry.audio.Player("file:///store/home/user/music/filename.mp3");

Of course, overall playtime of filename.mp3 should exceed 36 min.

 

When I try to setup media time up to 2147483ms (35min 47sec) all works fine:

// Setting new time for media
  playerInstance.mediaTime = 2147483;
  alert("New media time: " + playerInstance.mediaTime);

// New media time = 2147483

But  I am not able to setup media time higher than 2147483ms:

playerInstance.mediaTime = 2147484;
alert("New media time: " + playerInstance.mediaTime);

//New media time = 0 instead of 2147484 !!!

Can anybody confirm this issue?

Maybe there is some solution?

 

Please use plain text.
New Contributor
hittinfo
Posts: 4
Registered: ‎06-11-2013
My Device: 8530
My Carrier: MTN NIGERIA

Re: Problem with Audio Player - OS6 and OS7

AM ALSO HAVING PROBLEM WITH DOWNLOAD LINK

Please use plain text.