Play MP3 and / or AVI

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Pnirff
Ebase User
Posts: 21
Joined: Fri Jan 25, 2013 8:36 am

Play MP3 and / or AVI

#1

Postby Pnirff » Wed Mar 13, 2013 9:17 am

Hello,

this is hopefuly an easy one again. What is the easiest way to play a mp3, when the user press a button?

Thanks for your help
best regards
Manfred
0 x

Steve
Moderator
Moderator
Posts: 423
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#2

Postby Steve » Wed Mar 13, 2013 11:22 am

Hi Manfred,

I think you can do this:

Create a hidden HTML control on the page (Control name: MP3_CONTROL) with content:

Code: Select all

<embed height="50" width="100" src="myMp3.mp3">
On the button click, then show the control and this should play the file.

Using JavaScript....

Code: Select all

controls.MP3_CONTROL.show&#40;&#41;;
Steve
0 x

Pnirff
Ebase User
Posts: 21
Joined: Fri Jan 25, 2013 8:36 am

#3

Postby Pnirff » Thu Mar 14, 2013 9:56 am

Hello Steve,

thank you very much. This works fine :)

Best regards
Manfred
0 x


Who is online

Users browsing this forum: No registered users and 46 guests