Search found 8 matches

by MxDx
Wed May 24, 2023 12:26 am
Forum: Android Deployment
Topic: mobileControlGet (ID/or Name, "duration")
Replies: 0
Views: 196002

mobileControlGet (ID/or Name, "duration")

LC 9.6.9 | Mac OS 11.7.6

Is this a bug?
The code below successfully creates and plays the selected file.
But I can't get the duration of the loaded file until AFTER the play command is issued.


mobileControlCreate "player", "aPlayer"
put mobileControlGet ("aPlayer", "id") into gAndPlayerID ...
by MxDx
Sun Apr 30, 2023 2:51 pm
Forum: iOS Deployment
Topic: iOS audio help
Replies: 10
Views: 28517

Re: iOS audio help




LC sends a message every time the frame changes



How do I grab that message?

It's in the dictionary:
on currentTimeChanged theInterval -- display the time in a field
put theInterval into field "Time Code"
end currentTimeChanged

I guess I wasn't clear enough in my first post that I ...
by MxDx
Sat Apr 29, 2023 11:24 pm
Forum: iOS Deployment
Topic: iOS audio help
Replies: 10
Views: 28517

Re: iOS audio help

jacque wrote: Sat Apr 29, 2023 10:52 pm LC sends a message every time the frame changes
How do I grab that message?
by MxDx
Sat Apr 29, 2023 9:52 pm
Forum: iOS Deployment
Topic: iOS audio help
Replies: 10
Views: 28517

Re: iOS audio help


Why not use a standard player control? It works on all platforms.


The Player object function > currentTimeChanged doesn't work on iOS.
On the desktop I use this function to sync a graphic on the screen with the audio track.
So on mobile I would have to keep checking the audio track position ...
by MxDx
Sat Apr 29, 2023 9:49 pm
Forum: iOS Deployment
Topic: iOS audio help
Replies: 10
Views: 28517

Re: iOS audio help

According to the LC docs
OS - mac, windows, linux
Platforms - desktop, server
by MxDx
Sat Apr 29, 2023 2:41 am
Forum: iOS Deployment
Topic: iOS audio help
Replies: 10
Views: 28517

Re: iOS audio help



put mergAVPlayerCreate("avPlayer", ) into tPlayerID

What is "avPlayer" ?


Good question.
The LC documentation advertises the first argument to be - a pointer to an asset in memory?
I really don't understand asset in memory.

So I thought mergAVPlayerCreate("avPlayer", ) would create a ...
by MxDx
Sat Apr 29, 2023 12:09 am
Forum: iOS Deployment
Topic: iOS audio help
Replies: 10
Views: 28517

Re: iOS audio help

Wow 300 views and not one tip.
I guess mergAV isn't used much in LC.
by MxDx
Mon Apr 17, 2023 3:11 am
Forum: iOS Deployment
Topic: iOS audio help
Replies: 10
Views: 28517

iOS audio help

I am using on currentTimeChanged theInterval to sync graphic objects in my app with the playback location of an audio file.
The player object is used for audio playback on Mac OS.
I need to implement this same functionality for the iOS platform.

I'm looking at mergAVPlayerCreate ...