This file contains hidden or 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
mw.PluginManager.add( 'myPlugin', mw.KBasePlugin.extend({ | |
defaultConfig: { | |
foo: "Bar", | |
isBar: false, | |
bazToShow: 5, | |
pauseTimeout: 10 | |
}, | |
// Will be called when plugin initialized |
This file contains hidden or 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
mw.kalturaPluginWrapper(function(){ | |
// I'm using PluginManager to get the class of the core scrubber plugin in order to extend it | |
mw.PluginManager.add( 'myScrubber', mw.PluginManager.getClass('scrubber').extend({ | |
// I'm overriding only the updatePlayheadUI method | |
updatePlayheadUI: function(val) { | |
// Optionally calling the original method | |
// this._super(val); | |
// Adding my own functionality |
This file contains hidden or 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
{ | |
LIVE_BITRATES: "Live Bitrates:", | |
KBPS: "kbps", | |
SELECT_PLAYER: "Select Player:", | |
SELECT_PLAYER_HELP: "Kaltura player includes both layout and functionality (advertising, subtitles, etc)", | |
SHOW_ADVANCED_OPTIONS: "Show Advanced Options", | |
HIDE_ADVANCED_OPTIONS: "Hide Advanced Options", | |
DELIVERY_TYPE: "Delivery Type:", | |
DELIVERY_TYPE_HELP: "Adaptive Streaming automatically adjusts to the viewer's bandwidth, while Progressive Download allows buffering of the content.", | |
READ_MORE: "Read more", |
This file contains hidden or 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
/* kmc and kmc.vars defined in script block in kmc4success.php */ | |
// For debug enable to true. Debug will show information in the browser console | |
kmc.vars.debug = false; | |
// Quickstart guide (should be moved to kmc4success.php) | |
kmc.vars.quickstart_guide = "/content/docs/pdf/KMC_User_Manual.pdf"; | |
kmc.vars.help_url = kmc.vars.service_url + '/kmc5help.html'; | |
// Set base URL |
This file contains hidden or 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 | |
// Script: Simple PHP Proxy: Get external HTML, JSON and more! | |
// | |
// *Version: 1.6, Last updated: 1/24/2009* | |
// *Update by [email protected]* | |
// * added validate xml and content type | |
// * added X-Forwarded-For header for geoLookup services | |
// | |
// @@todo add cache and 304 support ( not very high priority since ad servers are generally |
This file contains hidden or 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( mw, $ ) {"use strict"; | |
// 'myPlugin' should be defined in jsonConfig in order to be loaded/enabled | |
mw.PluginManager.add( 'myPlugin', mw.KBaseComponent.extend({ | |
// Default component config | |
defaultConfig: { | |
parent: "controlsContainer", | |
order: 70, | |
align: "right" | |
}, |
This file contains hidden or 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
/* | |
* This script created to generate a JSON of Shabbat Times from Dat.gov.il | |
* | |
* Usage: | |
* 1. Go to: http://www.dat.gov.il/religion/console/shabbat_hours.aspx | |
* 2. Open the Web Developer Console | |
* 3. Copy the code below ans paste it in and hit Enter | |
* 4. Enjoy the data | |
*/ | |
var timesScapper = { |
This file contains hidden or 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
{ | |
"plugins":{ | |
"largePlayBtn": {}, | |
"scrubber": {}, | |
"playPauseBtn": {}, | |
"volumeControl": {}, | |
"fullScreenBtn": {}, | |
"durationLabel": {}, | |
"currentTimeLabel": {}, | |
"sourceSelector": {}, |
This file contains hidden or 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
var $obj = $({}); | |
$obj.bind('myEvent', function( param, callback ) { | |
// do stuff | |
callback(); | |
}); | |
$obj.bind('myEvent', function( param, callback ) { | |
// do stuff | |
callback(); |
This file contains hidden or 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
var playerConfig = { | |
components: [{"width":"100%","height":"30","type":"Container","id":"Controls","relativeTo":"ControlBarContainer","position":"firstChild"},{"type":"ToggleButton","id":"htmlPlayBtn","state":"playerStatus.isPlaying()","actionOn":"doPause","actionOff":"doPlay","cssClass":"btn","cssClassOn":"icon-pause","cssClassOff":"icon-play","relativeTo":"Controls","position":"firstChild"},{"height":"22","type":"ToggleButton","id":"htmlFullScreenBtn","state":"playerStatus.isInFullScreen()","actionOn":"closeFullScreen","actionOff":"openFullScreen","cssClass":"btn pull-right","cssClassOn":"icon-contract","cssClassOff":"icon-expand","relativeTo":"Controls","position":"lastChild"},{"width":"100%","height":"10","type":"Scrubber","id":"htmlScrubber","relativeTo":"Controls","position":"lastChild"},{"width":"60","height":"12","format":"mm:ss","type":"Label","id":"htmlCurrentTimeLabel","relativeTo":"Controls","position":"lastChild"},{"width":"60","height":"12","format":"mm:ss","type":"Label","id":"htmlDurationLab |