Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Music Commands V2.0.10 BUG on Android

Author
Message
Tone Dialer
Valued Member
18
Years of Service
User Offline
Joined: 17th Oct 2005
Location: England, well a town in it !
Posted: 21st Jan 2015 19:23 Edited at: 4th Feb 2015 17:54
@ Paul,

I have found a couple of commands which work OK in windows but when broadcast to the Android Player fail to operate correctly.

1. GetMusicDuration() when using the Demo file "music.mp3" the example below gives the correct value of 177 seconds in Windows, but on Android 2.3.3 and 4.0.3 I am getting a number way bigger than that (in the thousands)!



2. SeekMusic(), under Android the Relative Mode of this command is acting in the same way as Absolute Mode. Tested on Android 2.3.3 and 4.0.3, however it works as expected in Windows. [UPDATE: Fixed in V2.0.11]

In the example the Skip Fwd button should skip the music forward 10 seconds from the present position, but under Android it just seeks to start+10 seconds.



Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 22nd Jan 2015 17:10
I get 177 on both Windows and Android (5.0.1)

The SeekMusic bug on Android has been fixed for the next version.
Tone Dialer
Valued Member
18
Years of Service
User Offline
Joined: 17th Oct 2005
Location: England, well a town in it !
Posted: 22nd Jan 2015 19:37 Edited at: 22nd Jan 2015 19:38
@ Paul

I retested the GetMusicDuration() example on Android 4.0.3 using the latest AppGameKit player and I get a length of 4294967.500000 displayed.

Are any other users able to test on different versions of Android please?

JimHawkins
14
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 22nd Jan 2015 21:42
That's an odd result. It's not microseconds.

Onwards and sometimes upwards
Tone Dialer
Valued Member
18
Years of Service
User Offline
Joined: 17th Oct 2005
Location: England, well a town in it !
Posted: 4th Feb 2015 17:48 Edited at: 4th Feb 2015 17:52
@ Paul

Thank you for fixing SeekMusic() in the latest V2.0.11 release.

I have done a bit more investigation into the problem I am having with GetMusicDuration().
The fix (for Android) is to move the command into the main Do/Loop thus..



The example now works in Windows and Android, I have submitted the updated version to the on-line help files, please replace the original.

Login to post a reply

Server time is: 2024-04-25 14:53:34
Your offset time is: 2024-04-25 14:53:34