Skip to content

Instantly share code, notes, and snippets.

@gonenradai
gonenradai / gdrive2kaltura.py
Last active October 15, 2023 12:08 — forked from zoharbabin/gdrive2kaltura.py
Recursively migrate all media assets from Google Drive to Kaltura using Bulk Upload CSV
"""
Google Drive Media Extractor for Kaltura Upload:
This script processes a specified Google Drive folder to identify media files
(audio, video, and images) and produces a CSV file suitable for bulk upload
to the Kaltura platform. It recursively traverses through all subfolders,
captures metadata about the media files, and appends them to the CSV. Media
files are determined based on their MIME type.
Author Metadata:
<button style="font-size:32px;" onclick="ical_download()">Download</button>
<script>
//where the magic happens
function ical_download(){
//name of event in iCal
this.eventName = 'My Cool Event'; // CHANGE VALUE
//name of file to download as
@gonenradai
gonenradai / ExpressRecorder.js
Last active May 27, 2022 04:49
Express Recorder React Component - Sample
import React, { Component} from 'react';
let counter = 0;
/**
* This component depends on having Kaltura's Express Recorder JS on the page.
* You should include the JS lib in your index.html header, for example:
* <script src="https://www.kaltura.com/apps/expressrecorder/latest/express-recorder.js"></script>
*
* Mandatory props:
* ks - a valid KS (KalturaSessionType.USER) to be used by the recorder to create the video entry in Kaltura
@gonenradai
gonenradai / EventMediaPausedVideoMultiContextTest.php
Created November 5, 2018 20:34
Caliper unit tests - array of contexts
<?php
require_once 'CaliperTestCase.php';
use IMSGlobal\Caliper\actions\Action;
use IMSGlobal\Caliper\context\Context;
use IMSGlobal\Caliper\entities\agent\Organization;
use IMSGlobal\Caliper\entities\agent\Person;
use IMSGlobal\Caliper\entities\agent\SoftwareApplication;
use IMSGlobal\Caliper\entities\lis\CourseSection;
use IMSGlobal\Caliper\entities\lis\Membership;
@gonenradai
gonenradai / caliperEventMediaPausedVideoMultiContext.json
Created November 5, 2018 20:26
multi-context fixture for Caliper 1.1
{
"@context": ["https://some.domain.com/caliper/ctx/v1p1", "http://purl.imsglobal.org/ctx/caliper/v1p1"],
"id": "urn:uuid:956b4a02-8de0-4991-b8c5-b6eebb6b4cab",
"type": "MediaEvent",
"actor": {
"id": "https://example.edu/users/554433",
"type": "Person"
},
"action": "Paused",
"object": {