ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > RocketCake
forum topic indicator Make a Video Play Using a Button
person icon
drnebula
Registered User
Quote
2026-01-27 16:53:05

I've tried several times to have a movie play when a button is clicked but have had no success. I've asked how to do this using ChatGPT but those directions ask me to add items to the button and video that do not seem to exist. Any help appreciated.

person icon
niko
Moderator
Quote
2026-01-28 08:16:10

You can do it like that:

Put your HTML 5 video on the website.

Then add a button.

Right-click it, select "Add hyperlink", then as type select "JavaScript" and in there write this:

javascript:document.getElementsByTagName('video')[0].play();


person icon
drnebula
Registered User
Quote
2026-02-04 04:01:58

Fantastic. How about using a button to play a video inside a HTML video object?

person icon
niko
Moderator
Quote
2026-02-05 13:33:28

The HTML video player can be completely customized using CSS and JavaScript, but that's outside of the scope of RocketCake, you would need to do this manually.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |