Himalayan-Academy / Siva-Siva-App

Code Repository for the Siva Siva Mobile App
11 stars 3 forks source link

Listen: Problem With "Duration" on iOS #288

Closed Brahmanathaswami closed 3 years ago

Brahmanathaswami commented 3 years ago

We found a very "crazy" bug in iPhone Mobile, Simulator 14.1

it takes long time to open, that's why we don't see it. The bug is this

Remote: stack "/Users/brahmanathaswami/developer/CoreSimilator ...

lib_MobileControls

we have a problem:

command updateTimer line 271: Remote: stack "lib_MobileControls": execution error at line 271 (Property: value is not a number), char 74set the left of graphic "durationMarker" of stack "listen" to ((the right of graphic "durationProgress" of stack "listen") - 7)

"Remote: stack "lib_MobileControls": execution error at line 271 (Property: value is not a number), char 74"

2021-04-09_16-40-55
Brahmanathaswami commented 3 years ago

I have been working on this . You may need to create a function in behavior_Listen that well give us the

set the left of graphic "durationMarker" of stack "listen" to ((the right of graphic "durationProgress" of stack "listen") - 7)

in order to get around:

Remote: stack "lib_MobileControls": execution error at line 294 (Property: value is not a number), char 1

Brahmanathaswami commented 3 years ago

Leave this alone. Quality Control

Brahmanathaswami commented 3 years ago

NOTE:

returns "null" (?) if it was not a movie

Brahmanathaswami commented 3 years ago

We finished this. It works on Simulater and iPhone

Change file: lib_MobileControls Handler:

updateTime

[snip]

if isMobile() then put mobileControlGet("audioPlayer","currentTime") into sCurrentTime put mobileControlGet("audioPlayer","playableDuration") into sDuration

[snip]

// Update the time indicator set the width of graphic "durationProgress" of stack "listen" to tWidth

     set the left of graphic "durationMarker" of stack "listen" to (the right of graphic "durationProgress" of stack "listen"  - 7)
     set the left of graphic "durationProgress" of stack "listen" to the left of graphic "durationBG" of stack "listen"

it works! Without getting :

Remote: stack "lib_MobileControls": execution error at line 294 (Property: value is not a number), char 1