Interface ICupertinoMediaCasterHolder
public interface ICupertinoMediaCasterHolder
Interface to define parameters potentially retrievable when a stream is
found within a manifest along with maintaining a list of elements that
are made available within a chunklist
It is up to the ICupertinoMediaCasterPlaylistParser implementaton to set these
parameters.
The ICupertinoMediaCasterHolder object is made available to the
ICupertinoMediaCasterManageStreamName implementation so to provide context when
determining stream names to use.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndexElement(String ElementValue, long duration) Add an Index element to the listbooleanCheck if the URL provided is in this holderGet the audio codeclongGet the current durationintGet the audio tagintGet the bitrateintGet the bits per sampleintGet the channel countintGet the chunk countGet the index codec private dataintGet the display heightintGet the index display widthintGet the element countGet the FourCC parameterGet the group IDintGet the index IDGet the languageintGet the max heightintGet the max widthGet the media lineGet the index nameintGet the index packet sizeGet the program IDGet the resolutionintGet the sample rateGet the index typeGet the URLbooleanGet this isLive flagGet the next index elementGet the video codecvoidsetAudioCodec(String audiocodec) Set the audio codecvoidsetIndexAudioLocation(String audioLocation) Set the audio locationvoidsetIndexAudioTag(int audiotag) Set the audio tagvoidsetIndexBitrate(String bitrate) Set the bitratevoidsetIndexBitsPerSample(int bitspersample) Set the bits per samplevoidsetIndexChannel(int channel) Set the channel countvoidsetIndexChunkCount(int index) Set the chunk countvoidsetIndexCodecPrivateData(String codecprivatedata) Set the index codec private datavoidsetIndexCODECS(String completeCodecs) Set the codec stringvoidsetIndexDefault(String defaultSetting) Set the default settingvoidsetIndexDisplayHeight(int displayheight) Set the display heightvoidsetIndexDisplayWidth(int displaywidth) Set the index display widthvoidsetIndexFourCC(String fourcc) Set the FourCC parametervoidsetIndexGroupID(String groupid) Set the group IDvoidsetIndexId(int index) Set the index IDvoidsetIndexLanguage(String lang) Set the languagevoidsetIndexMaxHeight(int maxheight) Set the max heightvoidsetIndexMaxWidth(int maxwidth) Set the max widthvoidsetIndexMediaLine(String medialine) Set the media linevoidsetIndexName(String name) Set the index namevoidsetIndexPacketSize(int packetsize) Set the index packet sizevoidSet the program IDvoidsetIndexResolution(String resolution) Set the resolutionvoidsetIndexSampleRate(int samplerate) Set the sample ratevoidsetIndexType(String type) Set the index typevoidsetIndexURL(String url) Set the URLvoidsetisLive(boolean live) Set the isLive flagvoidsetVideoCodec(String videocodec) Set the video codec
-
Method Details
-
getisLive
boolean getisLive()Get this isLive flag- Returns:
-
setisLive
void setisLive(boolean live) Set the isLive flag- Parameters:
live-
-
getNextIndexElement
String getNextIndexElement()Get the next index element- Returns:
- String
-
addIndexElement
Add an Index element to the list- Parameters:
ElementValue-duration-
-
getCurrentDuration
long getCurrentDuration()Get the current duration- Returns:
- long
-
setIndexCodecPrivateData
Set the index codec private data- Parameters:
codecprivatedata-
-
getIndexCodecPrivateData
String getIndexCodecPrivateData()Get the index codec private data- Returns:
- String
-
setIndexDisplayWidth
void setIndexDisplayWidth(int displaywidth) Set the index display width- Parameters:
displaywidth-
-
getIndexDisplayWidth
int getIndexDisplayWidth()Get the index display width- Returns:
- int
-
setIndexDisplayHeight
void setIndexDisplayHeight(int displayheight) Set the display height- Parameters:
displayheight-
-
getIndexDisplayHeight
int getIndexDisplayHeight()Get the display height- Returns:
- int
-
setIndexMaxHeight
void setIndexMaxHeight(int maxheight) Set the max height- Parameters:
maxheight-
-
getIndexMaxHeight
int getIndexMaxHeight()Get the max height- Returns:
- int
-
setIndexMaxWidth
void setIndexMaxWidth(int maxwidth) Set the max width- Parameters:
maxwidth-
-
getIndexMaxWidth
int getIndexMaxWidth()Get the max width- Returns:
- int
-
setIndexAudioTag
void setIndexAudioTag(int audiotag) Set the audio tag- Parameters:
audiotag-
-
getIndexAudioTag
int getIndexAudioTag()Get the audio tag- Returns:
- int
-
setIndexPacketSize
void setIndexPacketSize(int packetsize) Set the index packet size- Parameters:
packetsize-
-
getIndexPacketSize
int getIndexPacketSize()Get the index packet size- Returns:
-
setIndexBitsPerSample
void setIndexBitsPerSample(int bitspersample) Set the bits per sample- Parameters:
bitspersample-
-
getIndexBitsPerSample
int getIndexBitsPerSample()Get the bits per sample- Returns:
- int
-
setIndexBitrate
Set the bitrate- Parameters:
bitrate-
-
getIndexBitrate
int getIndexBitrate()Get the bitrate- Returns:
- int
-
setIndexChannel
void setIndexChannel(int channel) Set the channel count- Parameters:
channel-
-
getIndexChannel
int getIndexChannel()Get the channel count- Returns:
- int
-
setIndexSampleRate
void setIndexSampleRate(int samplerate) Set the sample rate- Parameters:
samplerate-
-
getIndexSampleRate
int getIndexSampleRate()Get the sample rate- Returns:
- int
-
setIndexFourCC
Set the FourCC parameter- Parameters:
fourcc-
-
getIndexFourCC
String getIndexFourCC()Get the FourCC parameter- Returns:
-
setIndexChunkCount
void setIndexChunkCount(int index) Set the chunk count- Parameters:
index-
-
getIndexChunkCount
int getIndexChunkCount()Get the chunk count- Returns:
- int
-
setIndexCODECS
Set the codec string- Parameters:
completeCodecs-
-
setIndexId
void setIndexId(int index) Set the index ID- Parameters:
index-
-
getIndexId
int getIndexId()Get the index ID- Returns:
- int
-
setAudioCodec
Set the audio codec- Parameters:
audiocodec-
-
getAudioCodec
String getAudioCodec()Get the audio codec- Returns:
- String
-
setVideoCodec
Set the video codec- Parameters:
videocodec-
-
getVideoCodec
String getVideoCodec()Get the video codec- Returns:
- String
-
setIndexMediaLine
Set the media line- Parameters:
medialine-
-
getIndexMediaLine
String getIndexMediaLine()Get the media line- Returns:
- String
-
setIndexType
Set the index type- Parameters:
type-
-
getIndexType
String getIndexType()Get the index type- Returns:
- String
-
setIndexGroupID
Set the group ID- Parameters:
groupid-
-
getIndexGroupID
String getIndexGroupID()Get the group ID- Returns:
- String
-
setIndexLanguage
Set the language- Parameters:
lang-
-
getIndexLanguage
String getIndexLanguage()Get the language- Returns:
- String
-
setIndexName
Set the index name- Parameters:
name-
-
getIndexName
String getIndexName()Get the index name- Returns:
- String
-
getIndexElementCount
int getIndexElementCount()Get the element count- Returns:
- int
-
setIndexURL
Set the URL- Parameters:
url-
-
getIndexURL
String getIndexURL()Get the URL- Returns:
- String
-
setIndexProgramID
Set the program ID- Parameters:
id-
-
getIndexProgramID
String getIndexProgramID()Get the program ID- Returns:
- String
-
setIndexResolution
Set the resolution- Parameters:
resolution-
-
getIndexResolution
String getIndexResolution()Get the resolution- Returns:
- String
-
checkIndexAvailable
Check if the URL provided is in this holder- Parameters:
url-- Returns:
- boolean - available is true, not available false
-
setIndexDefault
Set the default setting- Parameters:
defaultSetting-
-
setIndexAudioLocation
Set the audio location- Parameters:
audioLocation-
-