• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

HTML5 video, show play button in center

Community Beginner ,
Apr 21, 2015 Apr 21, 2015

Copy link to clipboard

Copied

Using DWCC on mac. On my site, home page has HTML5 video, contained by <div>. Works fine in all browsers, and video and poster image scale nicely for mobile devices.

My problem: I can display video controls, but I'd like to also have a play button image in the center of the video window. Nothing I've tried has worked (onclick attribute with code, javascript). I was hoping there was a simple way to style the "controls" attribute to show a play button in the middle.

Suggestions?

Thanks,

Tom

Views

21.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 21, 2015 Apr 21, 2015

Copy link to clipboard

Copied

Hi Tom-

I was under thee impression that the play button would appear by default.

Could you put your page online and post a link for us?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2015 Apr 21, 2015

Copy link to clipboard

Copied

Here is the link to it: http://www.SimplicityPayments.com/CoreSource

Button appears in center only in FireFox. I’ve added the text and instruction to click below only because I can’t get the center play button.

Tom Penko

Brand Manager,

ECHO Health, Inc.

Office: 440.249.4148

Mobile: 440.334.6860

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 21, 2015 Apr 21, 2015

Copy link to clipboard

Copied

Tom, I am not expert is this, but what would you think of modifiying this image with your desired play button icon.

http://www.simplicitypayments.com/CoreSource/_images/videoPoster1A.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2015 Apr 21, 2015

Copy link to clipboard

Copied

Actually, I had a version with a button in the image. Then, by using the on-click attribute with some code inside the

tag, I was able to click anywhere on the image (most people would probably click on the button) and it would play. The problem in this case is that if I tried to keep the “controls” attribute in the

tag, the video wouldn’t run at all in FireFox, Opera and Chrome. Not sure about Explorer.

The version I have now works with everything, though it’s not as intuitive. It’s interesting, too, that on an iPhone5, the middle play arrow appears in the middle of the video screen over the top of the poster image. On my MacBook, it doesn’t appear.

Tom Penko

Brand Manager,

ECHO Health, Inc.

Office: 440.249.4148

Mobile: 440.334.6860

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2015 Apr 21, 2015

Copy link to clipboard

Copied

LATEST

HTML5 video is browser dependent.  So the play button or arrow is driven by the device & browser you use which varies.  To add play buttons above the video requires JavaScript.

HTML5 Video

Nancy O.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines