Skip to content

Instantly share code, notes, and snippets.

View milangupta4's full-sized avatar
😀

Milan Gupta milangupta4

😀
View GitHub Profile
/// this is the backend code. Use the generated OTP in this file to embed videos using embed code as given on
/// https://www.vdocipher.com/page/api
let request = require('request');
var api_url = "https://dev.vdocipher.com/api/videos/";
var secret_key = "API_CLIENT_SECRET_KEY";
function getOtp(v) {
var options = {
<?php
$vdo_id = '1234567890';
$theme_id = '9ae8bbe8dd964ddc9bdb932cca1cb59a';
// Custom player skins - https://www.vdocipher.com/blog/2018/10/video-player-themes/
include ('./vdo_embed.php');
echo vdo_embed($vdo_id, $theme_id); //Replace 1234567890 with VideoID
?>
@milangupta4
milangupta4 / player-color.css
Last active May 26, 2018 17:38
Change VdoCipher player color (WordPress)
.vc-container .html5-video-player .ytp-chrome-controls .ytp-button[aria-pressed]::after {
background-color: #0294f9;
}
.vc-container .html5-video-player .ytp-swatch-background-color {
background-color: #0294f9;
}
.vc-container .html5-video-player .ytp-cued-thumbnail-overlay:hover .ytp-large-play-button-bg {
fill: #0294f9;
@milangupta4
milangupta4 / player-color.css
Created May 26, 2018 16:48
Change VdoCipher player color (WordPress)
.vc-container .html5-video-player .ytp-chrome-controls .ytp-button[aria-pressed]::after {
background-color: #0294f9; //Edit this
}
.vc-container .html5-video-player .ytp-swatch-background-color {
background-color: #0294f9; //Edit this
}
.vc-container .html5-video-player .ytp-cued-thumbnail-overlay:hover .ytp-large-play-button-bg {
fill: #0294f9; //Edit this