Skip to content

Instantly share code, notes, and snippets.

View michael-riha's full-sized avatar
🎯
Focusing

Michael Riha michael-riha

🎯
Focusing
View GitHub Profile
// https://github.com/bitmovin/bitmovin-player-android-samples/blob/master/BasicAds/src/main/java/com/bitmovin/player/samples/ads/basic/MainActivity.java
...
import com.bitmovin.player.config.advertising.AdItem;
import com.bitmovin.player.config.advertising.AdSource;
import com.bitmovin.player.config.advertising.AdSourceType;
import com.bitmovin.player.config.advertising.AdvertisingConfiguration;
...
'''
chunked_server_test.py
Copyright August 3, 2012
Released into the public domain
This implements a chunked server using Python threads and the built-in
BaseHTTPServer module. Enable gzip compression at your own peril - web
browsers seem to have issues, though wget, curl, Python's urllib2, my own
async_http library, and other command-line tools have no problems.
@michael-riha
michael-riha / change-source-videoJS-bmAnalytics.js
Created August 8, 2019 08:41
This is an Snippet on how to change meta-data for videoJS-Adapter with Bitmovin Analytics
document.getElementById('change-source').onclick = function () {
analytics.sourceChange({
title: 'someVideoTitle',
videoId: 'video-1234'
});
player.src({
src: 'https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8',
type: 'application/x-mpegURL'
});
};
const analyticsConfig = {
key: '<ANALYTICS-KEY>',
videoId: 'video-empty',
userId: 'xxx_01',
cdnProvider: 'some_cdn',
customData1: 'sport',
title: 'video title set without a source, yet',
debug: true
};