Skip to content

Instantly share code, notes, and snippets.

@osdrv
Created February 5, 2012 18:42
Show Gist options
  • Save osdrv/1747122 to your computer and use it in GitHub Desktop.
Save osdrv/1747122 to your computer and use it in GitHub Desktop.
// MyApp.h
#pragma once
#include "ofMain.h"
class MyApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
# ... some HID handlers here
ofVideoPlayer movie;
};
// MyApp.cpp
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofBackground(255,255,255);
this->movie.loadMovie( "http://zz.zz.zz.zz/master.m3u8?cid=some_cool_id" );
// this->movie.loadMovie("http://some_internal_domain/video.mp4");
this->movie.play();
}
//--------------------------------------------------------------
void testApp::update(){
this->movie.update();
}
//--------------------------------------------------------------
void testApp::draw(){
this->movie.draw( 0, 0 );
}
// ..HID handlers definition here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment