QT Player controller not functional in revlet

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cborn
Posts: 66
Joined: Fri Dec 15, 2006 11:35 pm

QT Player controller not functional in revlet

Post by cborn » Tue May 18, 2010 4:47 pm

I'm playing back audio and video files recorded from my revlet in a QT player, but the controller bar of the player is not useful at all. The play/pause button does not work, neither does the scrub bar for jumping forward or back in the file. Is there a work around for this? Is it a bug?

I know the files play fine, because I can play from a button with the

Code: Select all

start player
command. :?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: QT Player controller not functional in revlet

Post by Mark » Wed May 19, 2010 2:06 pm

Hi cborn,

You might toggle the alwaysBuffer property of your player object, but that may cause other problems. Using a set of buttons to start, stop and pause playing might be the best solution. Good luck :-)

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4036
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: QT Player controller not functional in revlet

Post by bn » Wed May 19, 2010 5:35 pm

Carly,
in a revlet a player object has its alwaysBuffer property always set to true. That makes the controllers non-operational. You have to script this like Mark said. But it is not a big problem. You can even set up a slider to move through the movie/sound. Just check duration and currentTime.
regards
Bernd

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: QT Player controller not functional in revlet

Post by Mark » Wed May 19, 2010 6:18 pm

Hi Bernd,

Some time ago, I noticed an incompatibility between the alwaysBuffer and the currentTime. Do you know whether this has been solved in 4.0 or later?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4036
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: QT Player controller not functional in revlet

Post by bn » Wed May 19, 2010 7:29 pm

Hi Mark,

I don't have difficulties setting the currentTime w/ alwaysBuffer. I use it a lot and don't remember having difficulties since 2.7.

@ Carly
to make a slider put this into the script of a scrollbar

Code: Select all

on mouseDown
    set the endvalue of me to the duration of player 1 
end mouseDown

on scrollbarDrag theValue
   set the currenttime of player 1 to theValue
end scrollbarDrag
Or something like that.
regards
Bernd

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: QT Player controller not functional in revlet

Post by Mark » Wed May 19, 2010 7:34 pm

Hi Bernd,

I was unable to get the correct currentTime after playing part of a movie on Windows without QuickTime installed in (what I think was) Rev 2.9. It is always something very specific that is a complete show stopper :(

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4036
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: QT Player controller not functional in revlet

Post by bn » Wed May 19, 2010 7:50 pm

Mark wrote:I was unable to get the correct currentTime after playing part of a movie on Windows without QuickTime installed in (what I think was) Rev 2.9. It is always something very specific that is a complete show stopper
I was not aware of this, I only used it on Macs with Quicktime.

regards
Bernd

cborn
Posts: 66
Joined: Fri Dec 15, 2006 11:35 pm

Re: QT Player controller not functional in revlet

Post by cborn » Thu May 20, 2010 9:50 pm

Thank you Bernd and Mark for your help with this!

I've gotten the slider scrollbar to behave just the way I like! :D

carly

Post Reply

Return to “Multimedia”