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 TypeMethodDescriptionvoid
addIndexElement
(String ElementValue, long duration) Add an Index element to the listboolean
Check if the URL provided is in this holderGet the audio codeclong
Get the current durationint
Get the audio tagint
Get the bitrateint
Get the bits per sampleint
Get the channel countint
Get the chunk countGet the index codec private dataint
Get the display heightint
Get the index display widthint
Get the element countGet the FourCC parameterGet the group IDint
Get the index IDGet the languageint
Get the max heightint
Get the max widthGet the media lineGet the index nameint
Get the index packet sizeGet the program IDGet the resolutionint
Get the sample rateGet the index typeGet the URLboolean
Get this isLive flagGet the next index elementGet the video codecvoid
setAudioCodec
(String audiocodec) Set the audio codecvoid
setIndexAudioLocation
(String audioLocation) Set the audio locationvoid
setIndexAudioTag
(int audiotag) Set the audio tagvoid
setIndexBitrate
(String bitrate) Set the bitratevoid
setIndexBitsPerSample
(int bitspersample) Set the bits per samplevoid
setIndexChannel
(int channel) Set the channel countvoid
setIndexChunkCount
(int index) Set the chunk countvoid
setIndexCodecPrivateData
(String codecprivatedata) Set the index codec private datavoid
setIndexCODECS
(String completeCodecs) Set the codec stringvoid
setIndexDefault
(String defaultSetting) Set the default settingvoid
setIndexDisplayHeight
(int displayheight) Set the display heightvoid
setIndexDisplayWidth
(int displaywidth) Set the index display widthvoid
setIndexFourCC
(String fourcc) Set the FourCC parametervoid
setIndexGroupID
(String groupid) Set the group IDvoid
setIndexId
(int index) Set the index IDvoid
setIndexLanguage
(String lang) Set the languagevoid
setIndexMaxHeight
(int maxheight) Set the max heightvoid
setIndexMaxWidth
(int maxwidth) Set the max widthvoid
setIndexMediaLine
(String medialine) Set the media linevoid
setIndexName
(String name) Set the index namevoid
setIndexPacketSize
(int packetsize) Set the index packet sizevoid
Set the program IDvoid
setIndexResolution
(String resolution) Set the resolutionvoid
setIndexSampleRate
(int samplerate) Set the sample ratevoid
setIndexType
(String type) Set the index typevoid
setIndexURL
(String url) Set the URLvoid
setisLive
(boolean live) Set the isLive flagvoid
setVideoCodec
(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
-
-