Question regarding Media files

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Remog
Posts: 4
Joined: Tue Jun 04, 2013 9:09 pm

Question regarding Media files

Post by Remog »

I am trying to figure out if this is doable:

I am using a player to play a list of files from a directory. (so far so good).

I would like to have a text box run the current time index of the file (ie number of seconds in/remaining)..

something like:

Code: Select all

update field "field" with currentTime of player "Player" 
Not sure where to go with this, can this be done?
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Question regarding Media files

Post by Simon »

Hi Remog,
Welcome to the forum :)

Try:
put the currentTime of player "Player" into field "field"

Don't forget to use "timeScale"

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Remog
Posts: 4
Joined: Tue Jun 04, 2013 9:09 pm

Re: Question regarding Media files

Post by Remog »

can you elaborate on the timeScale piece?
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Question regarding Media files

Post by Klaus »

Can you look up "timescale" in the dictionary? 8-)
Post Reply