Skip to content

Instantly share code, notes, and snippets.

View BCdmlap's full-sized avatar

David LaPalomento BCdmlap

View GitHub Profile
@BCdmlap
BCdmlap / android-4.2-video.html
Created April 8, 2013 18:33
Android 4.2 video playback restrictions
<!doctype html>
<html>
<head>
<title></title>
<style>
button {
display: block;
width: 100px;
height: 100px;
}
<!doctype html>
<html>
<head>
<title>BC-31070</title>
</head>
<body>
<script type="text/javascript" src="http://DLaPalomento-Mac.vidmark.local:8080/cdn/js/BrightcoveExperiences.js"></script>
<object id="myExperience" class="BrightcoveExperience">
<param name="bgcolor" value="#FFFFFF" />
/**
* Check out http://craig.is/killing/mice for another project that is describing dependencies between async tasks.
*/
- (void)setupSetVideoListener
{
BCFlowChain *chain = [BCFlowChain chain];
setVideoListener = [emitter on:BCEventSetVideo callBlock:^(BCEvent *setVideoEvent){
[chain reset];
[chain abortOn:BCEventSetVideo];
[chain emit:BCEventShouldSetVideo];
- (void)setupSetVideoListener
{
[emitter on:BCEventSetVideo doChain:^(BCEvent *setVideoEvent, BCEventEmitterChain *chain){
BCVideo *video = [setVideoEvent.details objectForKey:@"video"];
[chain abortOn:BCEventSetVideo];
[chain emit:BCEventShouldSetVideo];