com.ooyala.android.player.exoplayer.ExoUtils Class Reference

Static Public Member Functions

static ArrayList< StreamKey > listRepresentationKeys (DashManifest mpd, int bitrate, File offlineFolder)
 This will create list of representation keys which needed to be downloaded. More...
 
static DashManifest parseMpd (String url, File mpdFile, ArrayList< StreamKey > arrayList)
 Parse the downloaded MPD file. More...
 
static DashManifest parseMpd (String url, File mpdFile)
 Parse the downloaded MPD file. More...
 
static ArrayList< StreamKey > readRepresentationKeysFromFile (String fileName)
 Read representation keys from CSV file and create array list of RepresentationKeys. More...
 
static String getUri (Stream stream)
 

Member Function Documentation

static String com.ooyala.android.player.exoplayer.ExoUtils.getUri ( Stream  stream)
static
Returns
URI for build media source of ExoPlayer
static ArrayList<StreamKey> com.ooyala.android.player.exoplayer.ExoUtils.listRepresentationKeys ( DashManifest  mpd,
int  bitrate,
File  offlineFolder 
)
static

This will create list of representation keys which needed to be downloaded.

It will also write the data into the CSV file so that can be useful when we play offline video

Parameters
mpdmanifest file
bitratebitrate for filtering required representation
offlineFolderoffline folder to store filtered representation numbers
Returns
list of all filtered representation keys
static DashManifest com.ooyala.android.player.exoplayer.ExoUtils.parseMpd ( String  url,
File  mpdFile,
ArrayList< StreamKey >  arrayList 
)
static

Parse the downloaded MPD file.

Parameters
urlurl for mpd file
mpdFilethe MPD file to parse
arrayListarraylist of Representations used while filtering mpd file
Returns
the MPD object
static DashManifest com.ooyala.android.player.exoplayer.ExoUtils.parseMpd ( String  url,
File  mpdFile 
)
static

Parse the downloaded MPD file.

Parameters
mpdFilethe MPD file to parse
Returns
the MPD object
static ArrayList<StreamKey> com.ooyala.android.player.exoplayer.ExoUtils.readRepresentationKeysFromFile ( String  fileName)
static

Read representation keys from CSV file and create array list of RepresentationKeys.

Parameters
fileNameCSV file name
Returns
array list of representationkeys