Created
February 5, 2012 18:42
-
-
Save osdrv/1747122 to your computer and use it in GitHub Desktop.
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
// 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