Cinder  0.9.1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cinder::qtime::MovieLoader Class Reference

#include <QuickTimeImplLegacy.h>

Classes

struct  Obj
 

Public Member Functions

 MovieLoader ()
 
 MovieLoader (const Url &url)
 
 ~MovieLoader ()
 
bool checkLoaded () const
 
bool checkPlayable () const
 
bool checkPlaythroughOk () const
 
bool checkProtection () const
 
void waitForLoaded () const
 
void waitForPlayable () const
 
void waitForPlayThroughOk () const
 
bool ownsMovie () const
 
const UrlgetUrl () const
 
const AVPlayer * getMovieHandle () const
 
AVPlayer * transferMovieHandle () const
 
 MovieLoader ()
 
 MovieLoader (const Url &url)
 
bool checkLoaded () const
 
bool checkPlayable () const
 
bool checkPlaythroughOk () const
 
void waitForLoaded () const
 
void waitForPlayable () const
 
void waitForPlaythroughOk () const
 
const UrlgetUrl () const
 
::Movie getMovieHandle () const
 
::Movie transferMovieHandle () const
 

Static Public Member Functions

static MovieLoaderRef create (const Url &url)
 
static MovieLoaderRef create (const Url &url)
 

Protected Member Functions

void updateLoadState () const
 
void updateLoadState () const
 

Protected Attributes

AVPlayer * mPlayer
 
Url mUrl
 
bool mLoaded
 
bool mBufferFull
 
bool mBufferEmpty
 
bool mPlayable
 
bool mProtected
 
bool mPlayThroughOK
 
bool mOwnsMovie
 
std::shared_ptr< ObjmObj
 
typedef std::shared_ptr< Obj > MovieLoader::* unspecified_bool_type
 
 operator unspecified_bool_type () const
 
void reset ()
 

Member Typedef Documentation

typedef std::shared_ptr<Obj> MovieLoader::* cinder::qtime::MovieLoader::unspecified_bool_type

Emulates shared_ptr-like behavior.

Constructor & Destructor Documentation

cinder::qtime::MovieLoader::MovieLoader ( )
cinder::qtime::MovieLoader::MovieLoader ( const Url url)
cinder::qtime::MovieLoader::~MovieLoader ( )
cinder::qtime::MovieLoader::MovieLoader ( )
cinder::qtime::MovieLoader::MovieLoader ( const Url url)

Member Function Documentation

static MovieLoaderRef cinder::qtime::MovieLoader::create ( const Url url)
static
bool cinder::qtime::MovieLoader::checkLoaded ( ) const

Returns whether the movie is in a loaded state, implying its structures are ready for reading but it may not be ready for playback.

bool cinder::qtime::MovieLoader::checkPlayable ( ) const

Returns whether the movie is playable, implying the movie is fully formed and can be played but media data is still downloading.

bool cinder::qtime::MovieLoader::checkPlaythroughOk ( ) const

Returns whether the movie is ready for playthrough, implying media data is still downloading, but all data is expected to arrive before it is needed.

bool cinder::qtime::MovieLoader::checkProtection ( ) const

Returns whether the movie has content protection applied to it.

void cinder::qtime::MovieLoader::waitForLoaded ( ) const

Waits until the movie is in a loaded state, which implies its structures are ready for reading but it is not ready for playback.

void cinder::qtime::MovieLoader::waitForPlayable ( ) const

Waits until the movie is in a playable state, implying the movie is fully formed and can be played but media data is still downloading.

void cinder::qtime::MovieLoader::waitForPlayThroughOk ( ) const

Waits until the movie is ready for playthrough, implying media data is still downloading, but all data is expected to arrive before it is needed.

bool cinder::qtime::MovieLoader::ownsMovie ( ) const

Returns whether the object is considered to own the movie asset (and thus will destroy it upon deletion)

const Url& cinder::qtime::MovieLoader::getUrl ( ) const

Returns the original Url that the MovieLoader is loading.

const AVPlayer* cinder::qtime::MovieLoader::getMovieHandle ( ) const

Returns the native QuickTime Movie data structure but still maintains ownership of it.

AVPlayer* cinder::qtime::MovieLoader::transferMovieHandle ( ) const

Returns the native QuickTime Movie and marks itself as no longer the owner. In general you should not call this.

void cinder::qtime::MovieLoader::updateLoadState ( ) const
protected
static MovieLoaderRef cinder::qtime::MovieLoader::create ( const Url url)
static
bool cinder::qtime::MovieLoader::checkLoaded ( ) const

Returns whether the movie is in a loaded state, implying its structures are ready for reading but it may not be ready for playback.

bool cinder::qtime::MovieLoader::checkPlayable ( ) const

Returns whether the movie is playable, implying the movie is fully formed and can be played but media data is still downloading.

bool cinder::qtime::MovieLoader::checkPlaythroughOk ( ) const

Returns whether the movie is ready for playthrough, implying media data is still downloading, but all data is expected to arrive before it is needed.

void cinder::qtime::MovieLoader::waitForLoaded ( ) const

Waits until the movie is in a loaded state, which implies its structures are ready for reading but it is not ready for playback.

void cinder::qtime::MovieLoader::waitForPlayable ( ) const

Waits until the movie is in a playable state, implying the movie is fully formed and can be played but media data is still downloading.

void cinder::qtime::MovieLoader::waitForPlaythroughOk ( ) const

Waits until the movie is ready for playthrough, implying media data is still downloading, but all data is expected to arrive before it is needed.

const Url& cinder::qtime::MovieLoader::getUrl ( ) const

Returns the original Url that the MovieLoader is loading.

::Movie cinder::qtime::MovieLoader::getMovieHandle ( ) const

Returns the native QuickTime Movie data structure but still maintains ownership of it.

::Movie cinder::qtime::MovieLoader::transferMovieHandle ( ) const

Returns the native QuickTime Movie and marks itself as no longer the owner. In general you should not call this.

void cinder::qtime::MovieLoader::updateLoadState ( ) const
protected
cinder::qtime::MovieLoader::operator unspecified_bool_type ( ) const

Emulates shared_ptr-like behavior.

void cinder::qtime::MovieLoader::reset ( )

Emulates shared_ptr-like behavior.

Member Data Documentation

AVPlayer* cinder::qtime::MovieLoader::mPlayer
protected
Url cinder::qtime::MovieLoader::mUrl
protected
bool cinder::qtime::MovieLoader::mLoaded
mutableprotected
bool cinder::qtime::MovieLoader::mBufferFull
mutableprotected
bool cinder::qtime::MovieLoader::mBufferEmpty
mutableprotected
bool cinder::qtime::MovieLoader::mPlayable
mutableprotected
bool cinder::qtime::MovieLoader::mProtected
mutableprotected
bool cinder::qtime::MovieLoader::mPlayThroughOK
mutableprotected
bool cinder::qtime::MovieLoader::mOwnsMovie
mutableprotected
std::shared_ptr<Obj> cinder::qtime::MovieLoader::mObj
protected

The documentation for this class was generated from the following files: