Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on 

Need HTML page as wrapper to my video hosted on CDN

I have a CDN where I host many videos. But I need to add some engagement to go along with a user click.

I store them as MP4's and need to turn Autoplay OFF. Also, I would like to track the hit-count for each video.

Can you provide a basic HTML page (and Javascript?) which plays a video, with Autoplay set to FALSE?

media.mydomain.com/videos/video1.mp4

Secondly, I need to increment a view counter, so I presume I would need to create a webservice that accepts an input param that would be the video name.

incrementUserClick("video1.mp4");

So, please comment on the best way to accomplish this.

Thanks,
Robert
Web DevelopmentHTMLJavaScriptWeb Languages and StandardsScripting Languages

Avatar of undefined
Last Comment
David Favor
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of curiouswebster

ASKER

Where in the HTML file does this go? Is this the <body>?

What kind of header tag is needed in the first line of the HTML file?
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo