Player

Quickstart

The easiest way to get started is by uploading a video in your dashhboard and navigating to the videos page where you can find all of your uploads. You can click on the preview button to watch your video and to find a small code snippet below the video, which should look something like this:

<div class="sharkcdn-wrapper"><iframe src="https://staging.sharkcdn.net/embed/player?app=APP_ID#id=VIDEO_ID" class="sharkcdn-iframe" allowfullscreen></iframe></div><style>.sharkcdn-wrapper{display:block;position:relative;width:100%;height:0;padding-top:56.25%;}.sharkcdn-iframe{border:0;display:block;position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;}</style>

Dynamically set the video

If you have a lot of videos or if you want to automate what video to show, the method above is probably going to be cumbersome. To solve that, you can simply set the VIDEO_ID variable by yourself:

<iframe src="<?php echo "$video" ?>"></iframe>

If you're using our upload widget, you should also set up webhooks to register new videos in your database.

© SharkCloud