This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Basic video sitemap generator | |
* | |
* Pulls video infromation from Brightcove Media API | |
* | |
* If you have a custom field in which you store the URL on your site where the video has been | |
* added, the script can use that URL in the sitemap. | |
* | |
* Otherwise it assumes all videos are to be played back in a single player at same URL. The "bctid" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$bc_player_id = '123456789'; // Player to use on Facebook - usually your viral player | |
$bc_player_key = 'AQ~~,AAAAABCDEFGabcdefg123456789'; // The player key for the same player | |
$bc_video_id = '123456789'; // Default video ID - overridden by ?bctid if present | |
$bc_japan_account = false; // Set to true only if a Brightcove Japan account | |
$bc_read_token = 'ABCDEFG123456789abcdefg123456789'; // Your read token | |
// https://github.com/BrightcoveOS/PHP-MAPI-Wrapper | |
require('bc-mapi.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Creates a video sitemap following this spec https://support.google.com/webmasters/answer/80472?hl=en | |
# | |
# This is a proof of concept that shows mapping Media API output to the sitemap fields. It produces a | |
# sitemap listing every video in a Video Cloud account, and the page URLs are all the same page with | |
# a varying bctid URL parameter. This would instruct a video player at that page to load that | |
# particular video. For production use you would probably take a different approach - e.g. for | |
# each URL you list in your regular sitemap you'd want to look up and add the details of the video | |
# that's published there. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript | |
tell application "System Events" to set the autohide of the dock preferences to true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Exits from iOS fullscreen on stop / pause | |
*/ | |
(function() { | |
function onPlayerReady() { | |
videoPlayer.addEventListener(brightcove.api.events.MediaEvent.STOP, function(event){ | |
$("video")[0].webkitExitFullScreen(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
function onPlayerReady() { | |
var overlay = videoPlayer.overlay(); | |
$(overlay).html('<img id="overlaylogo" src="http://cs1.brightcodes.net/ben/img/genericlogo.png" />').css({ | |
position:"fixed", | |
height:"100%", | |
width:"100%" | |
}); | |
$("#overlaylogo").css({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Brightcove sample for MRSS feed | |
// This is just a sample to get you started. You can customize further as your requirements | |
// grow. | |
// The following is a list of requirements and conditions in order for this podcast feed | |
// to function properly; | |
// 1) You must have a Pro or Enterprise level Video Cloud Account. | |
// 2) You will need to contact Brightcove Support to request an API READ Token with URL | |
// access, if you don't have one already. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Subtle skin"> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<link href='http://fonts.googleapis.com/css?family=Comfortaa:300' rel='stylesheet' type='text/css'> | |
<style id="jsbin-css"> | |
/*Player size*/ | |
.video-js { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer