This file contains 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
<adRequest networkId="375613" version="1" profile="375613:MSN_AU_iOS_Live"> | |
<capabilities> | |
<supportsSlotTemplate /> | |
<supportsAdUnitInMultipleSlots /> | |
<supportNullCreative /> | |
<supportsSlotCallback /> | |
<requiresVideoCallbackUrl /> | |
<supportsFallbackAds /> | |
<expectMultipleCreativeRenditions /> | |
<requiresRendererManifest /> |
This file contains 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
<adRequest networkId="375613" version="1" profile="375613:MSN_AU_iOS_Live"> | |
<capabilities> | |
<supportsSlotTemplate /> | |
<supportsAdUnitInMultipleSlots /> | |
<supportNullCreative /> | |
<supportsSlotCallback /> | |
<requiresVideoCallbackUrl /> | |
<supportsFallbackAds /> | |
<expectMultipleCreativeRenditions /> | |
<requiresRendererManifest /> |
This file contains 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
<adRequest networkId="375613" version="1" profile="375613:MSN_AU_iOS_Live"> | |
<capabilities> | |
<supportsSlotTemplate /> | |
<supportsAdUnitInMultipleSlots /> | |
<supportNullCreative /> | |
<supportsSlotCallback /> | |
<requiresVideoCallbackUrl /> | |
<supportsFallbackAds /> | |
<expectMultipleCreativeRenditions /> | |
<requiresRendererManifest /> |
This file contains 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
from lxml import etree | |
import brightcove | |
''' | |
This script extracts data from a given brightcove account and formats a request suitable for ingest into Brightcove ONCE | |
Sample format: | |
<items> | |
<!-- | |
fetched from https://api.brightcove.com/services/library?command=search_videos&all=the%20battles&none=blind&all=series:the%20voice&video_fields=lastModifiedDate,name,referenceid,renditions,id,cuepoints&media_delivery=http&sort_by=MODIFIED_DATE:DSC&token=& |
This file contains 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
<adRequest networkId="90750" version="1" profile="90750:ooyala_android"> | |
<capabilities> | |
<supportsSlotTemplate /> | |
<supportsAdUnitInMultipleSlots /> | |
<supportNullCreative /> | |
<supportsSlotCallback /> | |
<requiresVideoCallbackUrl /> | |
<supportsFallbackAds /> | |
<expectMultipleCreativeRenditions /> | |
<requiresRendererManifest /> |
This file contains 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
from tornado.wsgi import WSGIContainer | |
from tornado.httpserver import HTTPServer | |
from tornado.ioloop import IOLoop | |
import tornado.netutil | |
import requests | |
import os | |
import netifaces | |
from worker import app | |
from worker import register |
This file contains 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
# First part is a unit test script effectively, this code would go in the Flask app | |
from celery import Celery | |
# There needs to be a seperate tasks module, see below | |
import tasks | |
# Celery uses redis to commuicate between tasks | |
celery = Celery("app", broker='redis://localhost:6379',backend='redis://localhost:6379') | |
# This submits the task to run via Celery |
This file contains 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
# tasks.py | |
from celery import task, Celery, subtask, group | |
import time | |
REDIS_SERVER = 'redis://localhost:6379' | |
celery = Celery("app", broker=REDIS_SERVER, backend=REDIS_SERVER) | |
@task() | |
def task1(input): |
This file contains 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
mp4info --verbose init.mp4 | |
File: | |
major brand: isom | |
minor version: 200 | |
compatible brand: isom | |
compatible brand: iso2 | |
compatible brand: avc1 | |
compatible brand: mp41 | |
compatible brand: iso6 |
This file contains 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
http://playready.directtaps.net/pr/svc/rightsmanager.asmx?PlayEnablers=786627D8-C2A6-44BE-8F88-08AE255B01A7 | |
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | |
<soap:Body> | |
<AcquireLicense xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols"> | |
<challenge> | |
<Challenge xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols/messages"> | |
<LA xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols" Id="SignedData" xml:space="preserve"> | |
<Version>1</Version> | |
<ContentHeader> |
OlderNewer