com.ooyala.android.MoviePlayerSelector Class Reference

Select the proper movie and stream player for a video/stream. More...

Public Member Functions

 MoviePlayerSelector ()
 
void registerPlayerFactory (PlayerFactory factory)
 
MoviePlayer selectMoviePlayer (Video video) throws OoyalaException
 Create a movie player for a video. More...
 
Set< String > getSupportedFormats ()
 Get all supported formats for all registered PlayerFactories. More...
 
StreamPlayer selectStreamPlayer (Set< Stream > streams)
 Create a movie player for a set of streams. More...
 

Detailed Description

Select the proper movie and stream player for a video/stream.

Constructor & Destructor Documentation

com.ooyala.android.MoviePlayerSelector.MoviePlayerSelector ( )

Member Function Documentation

Set<String> com.ooyala.android.MoviePlayerSelector.getSupportedFormats ( )

Get all supported formats for all registered PlayerFactories.

Returns
the list of all supported formats for all registered PlayerFactories
void com.ooyala.android.MoviePlayerSelector.registerPlayerFactory ( PlayerFactory  factory)
MoviePlayer com.ooyala.android.MoviePlayerSelector.selectMoviePlayer ( Video  video) throws OoyalaException

Create a movie player for a video.

Parameters
videothe video to be played
Returns
a movie player
Exceptions
OoyalaException
StreamPlayer com.ooyala.android.MoviePlayerSelector.selectStreamPlayer ( Set< Stream streams)

Create a movie player for a set of streams.

Parameters
streamsthe streams to be played
Returns
a stream player