Skip to content

Instantly share code, notes, and snippets.

View zoharbabin's full-sized avatar
💭
dreaming, breaking, building

Zohar Babin zoharbabin

💭
dreaming, breaking, building
View GitHub Profile
@zoharbabin
zoharbabin / Open Media Room @FOSDEM 2019 - CFP.md
Last active October 12, 2018 11:32
Call for participation at the FOSDEM 2019 Open Media room

Hi all,

Join us on February 2, 2019 in Brussels for the 5th year of the Open Media devroom at FOSDEM!

Video has gone mainstream, and technologies to handle media assets, streams, workflows and apps at scale are now critical for many operations both hobby and commercial.
Submit a speaking session and share your knowledge with the community at FOSDEM! We want to learn about open standards, software or hardware projects that deal with media.

We're looking for sessions on software or hardware spanning from building audio / video applications, through open standards, formats, codecs, media analytics and search, AI for creating or analyzing media, IPTV, Broadcasting and Radio practices - anything media is welcome!

This year, the Open Media devroom will take place on:

@zoharbabin
zoharbabin / de2package.md
Created November 22, 2018 19:52
Development to Packaging Requirements & Process

Configuration Changes

Configuration Changes that are not committed:

@zoharbabin
zoharbabin / kplaylist-embed.php
Created January 19, 2019 14:51
Kaltura Player v7 Playlist Embed Sample
<?php
//This goes on your backend - never include API secret keys in front end code
$apiAdminSecret = 'REPLACEME'; //https://kmc.kaltura.com/index.php/kmcng/settings/integrationSettings
$partnerId = REPLACEME; //https://kmc.kaltura.com/index.php/kmcng/settings/integrationSettings
$uniqueUserId = 'anonymous-visitor'; //Set this to a unique ID to track sessions per unique users and build user profiels or track history per user. If user analytics is not needed; set this to 'anonymous-visitor'
$uiconfId = REPLACEME; //https://kmc.kaltura.com/index.php/kmcng/studio/v3
$entryId = 'REPLACEME'; //https://kmc.kaltura.com/index.php/kmcng/content/entries/list
$appName = 'REPLACEME'; //used to designate your application name, this can be used in the Analytics later to differentiate usage across different apps (such as website vs. mobile iOS vs. mobile Android vs. partner site)
$appDomain = 'REPLACEME.com'; // the domain to track this playback session to
//generate the Kaltura Session for secure and tracked playback sessi
//reset these with every player load/playback session
var PLAY_REACHED_25_PERCENT = false;
var PLAY_REACHED_50_PERCENT = false;
var PLAY_REACHED_75_PERCENT = false;
var PLAY_REACHED_100_PERCENT = false;
kalturaPlayer.addEventListener(kalturaPlayer.Event.Core.TIME_UPDATE, function (event) {
var progpercent = kalturaPlayer.currentTime / kalturaPlayer.duration;
if (!PLAY_REACHED_25_PERCENT && progpercent >= 0.25) {
PLAY_REACHED_25_PERCENT = true;
@zoharbabin
zoharbabin / kaltura-v7-requireJS-embed.php
Last active July 5, 2019 17:16
Sample code - how to embed the Kaltura Player v7 on a site that uses requireJS
<?php
//This goes on your backend - never include API secret keys in front end code
$expire=60*60*24; //one day
$uniqueUserId = 'someUniqueUserId'; //Make sure this is set to your real user IDs so that Analytics and Entitlements will really be tracked according to your business needs
$partnerId = REPLACE_ME; //https://kmc.kaltura.com/index.php/kmcng/settings/integrationSettings
$apiAdminSecret = 'REPLACE_ME'; //https://kmc.kaltura.com/index.php/kmcng/settings/integrationSettings
$uiconfId = REPLACE_ME; //https://kmc.kaltura.com/index.php/kmcng/studio/v3
$entryId = 'REPLACE_ME'; //https://kmc.kaltura.com/index.php/kmcng/content/entries/list
$appName = 'MyAppName'; //used to designate your application name, this can be used in the Analytics later to differentiate usage across different apps (such as website vs. mobile iOS vs. mobile Android vs. partner site)
$appDomain = 'my.appdomain.com'; // the domain to track this playback session to
@zoharbabin
zoharbabin / kaltura-v7-embed.php
Last active August 10, 2023 10:48
Kaltura Player v7 Embed Code Best Practice
<?php
//This goes on your backend - never include API secret keys in front end code
$expire=60*60*24; //one day
$uniqueUserId = 'someUniqueUserId'; //Make sure this is set to your real user IDs so that Analytics and Entitlements will really be tracked according to your business needs
$partnerId = REPLACE_ME; //https://kmc.kaltura.com/index.php/kmcng/settings/integrationSettings
$apiAdminSecret = 'REPLACE_ME'; //https://kmc.kaltura.com/index.php/kmcng/settings/integrationSettings
$uiconfId = REPLACE_ME; //https://kmc.kaltura.com/index.php/kmcng/studio/v3
$entryId = 'REPLACE_ME'; //https://kmc.kaltura.com/index.php/kmcng/content/entries/list
$appName = 'MyApplicationName'; //used to designate your application name, this can be used in the Analytics later to differentiate usage across different apps (such as website vs. mobile iOS vs. mobile Android vs. partner site)
$appDomain = 'my.appdomain.com'; // the domain to track this playback session to
@zoharbabin
zoharbabin / recorder-embed.php
Created July 8, 2019 12:21
How to embed the Kaltura recorder widget
<?php
//This PHP part of the code goes on your backend - never include API secret keys in front end code
$partnerId = REPLACEME; //https://kmc.kaltura.com/index.php/kmcng/settings/integrationSettings
$apiAdminSecret = 'REPLACEME'; //https://kmc.kaltura.com/index.php/kmcng/settings/integrationSettings (Admin Secret)
$expire=60*60*24; //one day
$uniqueUserId = 'someUniqueUserId'; //Make sure this is set to your real user IDs so that Analytics and Entitlements will really be tracked according to your business needs
$uiconfId = REPLACEME; //https://kmc.kaltura.com/index.php/kmcng/studio/v3
$appName = 'expressrecorder'; //used to designate your application name, this can be used in the Analytics later to differentiate usage across different apps (such as website vs. mobile iOS vs. mobile Android vs. partner site)
$appDomain = 'my.appdomain.com'; // the domain to track this playback session to
//generate the Kaltura Session for secure and tracked playback session
@zoharbabin
zoharbabin / lazyloadkaltura.html
Created July 11, 2019 14:55
Lazy load many Kaltura videos sample reference
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
box-sizing: border-box;
}
from KalturaClient import *
config = KalturaConfiguration(<PARTNER ID>)
client = KalturaClient(config)
ks = client.session.start(
<ADMIN SECRET>,
<YOUR EMAIL ADDRESS>,
KalturaSessionType.ADMIN,
<PARTNER ID>
)
client.setKs(ks)