Skip to content

Instantly share code, notes, and snippets.

@tifroz
tifroz / caf-empty-queue-test-html
Last active December 10, 2017 02:19
Test of the CAF queueManager interface
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"
src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js">
</script>
</head>
<body>
<cast-media-player></cast-media-player>
@tifroz
tifroz / caf-receiver-test-for-cors.html
Created December 9, 2017 03:16
Google Cast: CAF receiver test for plain mp4 file
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"
src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js">
</script>
</head>
<body>
<cast-media-player></cast-media-player>
<script>
@tifroz
tifroz / opensubtitles-search.js
Last active June 5, 2017 17:41
opensubtitles son response for subtitle search
{
"status": 200 OK,
"data": [
{
IDMovie = 18653;
IDMovieImdb = 317219;
IDSubMovieFile = 0;
IDSubtitle = 6447655;
IDSubtitleFile = 1955029911;
ISO639 = tr;
@tifroz
tifroz / boku-request-example.js
Created April 24, 2017 19:14
A server-side header capture, for a request originated from the roku video player
{
"host": "webtv.dev.example.com",
"accept-language": "en-us",
"x-playback-session-id": "F7880627-642C-4A60-99F4-F1BAE9EBCA4B",
"cookie": "_ga=GA1.2.497125455.148518954; cookie=bah",
"range": "bytes=7077888-7340031",
"accept": "*/*",
"user-agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1",
"referer": "http://webtv.dev.example.com/cookie/test-simple.html",
"accept-encoding": "identity",
{
"code": 0,
"message": "",
"validated": true,
"subscriptions": {
"com.swishly.webtv.iap1.sub.1_month.pro": {
"quantity": "1",
"product_id": "com.swishly.webtv.iap1.sub.1_month.pro",
"transaction_id": "300000183400290",
"original_transaction_id": "300000173028147",
@tifroz
tifroz / reporter-sub.json
Last active March 2, 2017 02:01
Apple Reporter Subscription Event
{
"Event Date": "2017-02-25",
"Event": "Renew",
"App Name": "[App Name Scrubbed]",
"App Apple ID": "[App Id Scrubbed]",
"Subscription Name": "[Subscription Name Scrubbed]",
"Subscription Apple ID": "1177256379",
"Subscription Group ID": "20349774",
"Subscription Duration": "1 Month",
"Trial": "",
[
{ // After initial subscription
quantity: '1',
product_id: 'com.swishly.webtv.iap.sub.1_month.pro',
transaction_id: '1000000240219625',
original_transaction_id: '1000000240219625',
purchase_date: '2016-10-04 23:04:31 Etc/GMT',
purchase_date_ms: '1475622271000',
purchase_date_pst: '2016-10-04 16:04:31 America/Los_Angeles',
original_purchase_date: '2016-10-04 23:04:33 Etc/GMT',
@tifroz
tifroz / handshake.json
Last active December 1, 2015 00:36
handshake event
{
"data": {
"action": "handshake",
"queue": [
{
"nodeIdentifier": {
"pageUrl": "http://www.ted.com/talks/marina_abramovic_an_art_made_of_trust_vulnerability_and_connection",
"family": "js",
"nodeId": "ted-player-4408",
"documentUrl": "http://www.ted.com/talks/marina_abramovic_an_art_made_of_trust_vulnerability_and_connection"
@tifroz
tifroz / loadEvent.json
Created August 31, 2015 19:15
Use as a reference when mocking up / creating a LOAD event for the chromecast receiver
{
"type":"message",
"Z":false,
"defaultPrevented":false,
"Yb":true,
"senderId":"14:DC8024DC-1122-4903-8D28-E2BEF7C3BE9B",
"data":{
"currentTime":0,
"requestId":6,
"type":"LOAD",
@tifroz
tifroz / ios7 font names
Created April 26, 2014 22:19
All ios7 font names
Thonburi-Bold
Thonburi
Thonburi-Light
SnellRoundhand-Black
SnellRoundhand-Bold
SnellRoundhand
AcademyEngravedLetPlain
MarkerFelt-Thin
MarkerFelt-Wide
Avenir-Heavy