playing audio/video other than quicktime

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
lbtony
Posts: 35
Joined: Tue Apr 11, 2006 9:01 am

playing audio/video other than quicktime

Post by lbtony » Thu Jul 06, 2006 9:11 am

Can I play files such as .mp3 .wma .wmv. what Should I do? I tried to play a mp3 file using a normal button with some script like:

on mouseUp
play audioclip "C://test.mp3"
end mouseUp

but all I got is some noise. Any idea to this???

thanks.....

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Thu Jul 06, 2006 10:08 am

Audioclip supports a limited number of audio formats, and MP3 is not one of them. Create a player control, set its filename to the file path, and then use the 'start' command to start the player.
Once everything works properly, you can move the player control off-screen, if you like.

Hope this helped,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

lbtony
Posts: 35
Joined: Tue Apr 11, 2006 9:01 am

Post by lbtony » Thu Jul 06, 2006 1:17 pm

Hi Janschenkel,
Thank you. Do you know which formats are supported in Runrev? and what's the "play" command for? Because it seems to me that the "play" command it not much about controling the player.

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

Post by Mark » Fri Jul 07, 2006 1:30 am

If you look at the description of the play command in the docs, you will see that it supports quite a few features, such as starting and stopping, stepping forwards and backwards, looping, pausing and resuming, and more. This refers to playing wav files and other formats, but not mp3. Start playing a wav file with "play <filename>"


You should also check out the description of the player object, which shows that there are many options and properties. The player object is for MP3 files and many other formats. You start playing a movie or sound in a player by means of the command "start player <player name>". Before you can play, you have to set the filename property of the player.

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

mcgrath3
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 149
Joined: Thu Feb 23, 2006 8:49 pm
Contact:

Post by mcgrath3 » Wed Nov 05, 2008 4:29 pm

You can also use iTunes from within Revolution on both Mac and Win machines. I wrote an extensive library for full integration with iTunes and it's free for Revolution users.

Go to:

Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

Post Reply