Track Mobile Player Props from Back Script

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Track Mobile Player Props from Back Script

** Clarence P Martin ** via use-livecode
If we set up a "lib_MobileControls" and start using on init, effectlvely adding this lib to the backscript.

how does this:

on playerPropertyAvailable theProperty
    if theProperty is "duration" then
            answer "You can now query the length of the movie"
      end if
end playerPropertyAvailable

know what player we are talking about?

e.g.  I don’t think, in a script I have:

on playerPropertyAvailable theProperty -- msg sent when enough has content is loaded
if theProperty is "duration" then
showBusyIndicator false -- Remove the "Loading..." indicator and start playing
mobileControlDo pPlayerName, "play"
end if
end playerPropertyAvailable

that pPlayerName is passed from anywhere it is not a local in this lib, but it could be.


use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences: