|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmythapi.impl.AData<E> org.jmythapi.protocol.response.impl.AMythResponse<E> org.jmythapi.protocol.response.impl.AProgramInfo<IProgramInfo.Props> org.jmythapi.protocol.response.impl.ProgramInfo
public class ProgramInfo
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jmythapi.protocol.response.IProgramInfo |
---|
IProgramInfo.Props |
Field Summary |
---|
Fields inherited from class org.jmythapi.impl.AData |
---|
logger, propsClass, protoVersion, respArgs |
Constructor Summary | |
---|---|
ProgramInfo(IMythPacket packet)
Constructs a program-info object from a MythTv-protocol packet. |
|
ProgramInfo(ProtocolVersion protoVersion)
Constructs an empty program-info object for the given protocol version. |
|
ProgramInfo(ProtocolVersion protoVersion,
List<String> responseArgs)
Constructs a program-info object for the given protocol version with the given parameters. |
Method Summary | |
---|---|
IProgramAudioProperties |
getAudioProperties()
Gets the recording audio properties. |
String |
getBaseName()
Gets the recording file base name. |
Integer |
getCardID()
Gets the ID of the physical capture card. |
String |
getCategory()
Gets the category of the program. |
Integer |
getChannelID()
Gets the MythTV internal channel ID. |
String |
getChannelName()
Gets the channel name. |
String |
getChannelNumber()
Gets the user defined channel number. |
String |
getChannelOuputFilters()
Output filters. |
String |
getChannelSign()
Gets the station abbreviation. |
String |
getDescription()
Gets the program description. |
Date |
getEndDateTime()
Gets the scheduled end of the program. |
Integer |
getEpisode()
Gets the episode number of the program. |
Long |
getFileSize()
Gets the size of the recording file. |
Integer |
getFindID()
Gets the find-id of the recording. |
String |
getHostName()
Gets the name of the host storing the recording file. |
String |
getInetRef()
Gets an identification string to use for metadata grabbers. |
Integer |
getInputID()
Gets the ID of a specific input. |
Date |
getLastModified()
Last modification time. |
Date |
getOriginalAirdate()
Gets the original airdate of the recording. |
Integer |
getParentID()
Parent ID. |
Integer |
getPartNumber()
Part number. |
Integer |
getPartTotal()
Part total. |
String |
getPathName()
Gets the recording file name or URI. |
String |
getPlayGroup()
Gets the play group assigned to the recording. |
String |
getPreviewImageName()
Gets the name of the default recordings preview image. |
ProgramFlags |
getProgramFlags()
Gets additional status flags of the recording. |
String |
getProgramID()
Get the program ID. |
IProgramRecordingDupMethodType |
getRecordingDuplicationMethod()
Gets the duplication mode to use for the recording. |
IProgramRecordingDupInType |
getRecordingDuplicationType()
Gets the duplication type of the recording. |
int |
getRecordingDuration()
Gets the recording duration for the program in minutes. |
int |
getRecordingElapsedMinutes()
Gets the amount of minutes elapsed since recording of this program has started. |
int |
getRecordingElapsedPercent()
Gets the amount of minutes elapsed in percent, since recording of this program has started. |
int |
getRecordingEndOffset()
Gets the recording end offset. |
Date |
getRecordingEndTime()
Gets the recording end time. |
String |
getRecordingGroup()
Gets the recording group. |
Integer |
getRecordingId()
Gets the id of the recording in the database. |
Integer |
getRecordingPriority()
Gets the recording priority. |
Integer |
getRecordingPriority2()
Gets the recording priority 2. |
int |
getRecordingStartOffset()
Gets the recording start offset. |
Date |
getRecordingStartTime()
Gets the recording start time. |
ProgramRecordingStatus |
getRecordingStatus()
Gets the current recording status. |
ProgramRecordingType |
getRecordingType()
Gets the recording type. |
Integer |
getSeason()
Gets the season of the program. |
String |
getSeriesID()
Gets the series ID of the program. |
Integer |
getSourceID()
Gets the source ID. |
Float |
getStars()
Rating. |
Date |
getStartDateTime()
Gets the scheduled start of the program. |
String |
getStorageGroup()
Gets the name of the storage group storing the recording. |
String |
getSubtitle()
Gets the program subtitle. |
IProgramSubtitleType |
getSubtitleType()
Gets the recording subtitle properties. |
String |
getSyndicatedEpisode()
Gets the syndicated episode of the program. |
Float |
getTimeStretch()
Time stretch setting for recording. |
String |
getTitle()
Gets the program title. |
String |
getUniqueRecordingId()
The unique recording id if this recording. |
IProgramVideoProperties |
getVideoProperties()
Gets the recording video properties. |
Integer |
getYear()
Gets the production year of the program. |
Boolean |
hasAirDate()
Deprecated. 57 |
Boolean |
isChannelCommFree()
Deprecated. 57, use ProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead. |
Boolean |
isDuplicate()
Deprecated. 57, use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead. |
Boolean |
isRepeat()
Deprecated. 57, use ProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead. |
Boolean |
isShareable()
Deprecated. 57 |
void |
setFileSize(Long fileSize)
Updates the size of the recording. |
static ProgramInfo |
valueOf(RecorderNextProgramInfo nextProgram,
InputInfoFree input)
|
Methods inherited from class org.jmythapi.protocol.response.impl.AProgramInfo |
---|
getDuration, getFullTitle, getMinutesAfterMidnight, getUniqueProgramId, isValid |
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse |
---|
checkSize, decodeProperty, encodeProperty, getExpectedSize, getPacket, getProperties, getProperty, getPropertyIndex |
Methods inherited from class org.jmythapi.impl.AData |
---|
clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jmythapi.protocol.response.IProgramInfo |
---|
getPropertyValues |
Methods inherited from interface org.jmythapi.protocol.response.IBasicProgramInfo |
---|
getDuration, getFullTitle, getMinutesAfterMidnight, getUniqueProgramId, isValid |
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Methods inherited from interface org.jmythapi.IPropertyAware |
---|
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, setPropertyValue, setPropertyValue, setPropertyValueObject |
Constructor Detail |
---|
public ProgramInfo(IMythPacket packet)
packet
- the protocol packet received over network.public ProgramInfo(ProtocolVersion protoVersion, List<String> responseArgs)
protoVersion
- the protocol version to useresponseArgs
- the program-info argumentspublic ProgramInfo(ProtocolVersion protoVersion)
protoVersion
- the protocol version to useMethod Detail |
---|
public String getUniqueRecordingId()
IProgramInfo
This id has the format: [channel-id]_[recording-start-time]
Note: This id is different to IBasicProgramInfo.getUniqueProgramId()
getUniqueRecordingId
in interface IProgramInfo
public String getTitle()
IBasicProgramInfo
getTitle
in interface IBasicProgramInfo
getTitle
in interface IProgramInfo
getTitle
in class AProgramInfo<IProgramInfo.Props>
IProgramInfo.Props.TITLE
,
IBasicProgramInfo.getTitle()
public String getSubtitle()
IBasicProgramInfo
getSubtitle
in interface IBasicProgramInfo
getSubtitle
in interface IProgramInfo
getSubtitle
in class AProgramInfo<IProgramInfo.Props>
IProgramInfo.Props.SUBTITLE
,
IBasicProgramInfo.getSubtitle()
public String getDescription()
IBasicProgramInfo
getDescription
in interface IBasicProgramInfo
getDescription
in interface IProgramInfo
getDescription
in class AProgramInfo<IProgramInfo.Props>
IProgramInfo.Props.DESCRIPTION
,
IBasicProgramInfo.getDescription()
public String getCategory()
IBasicProgramInfo
getCategory
in interface IBasicProgramInfo
getCategory
in interface IProgramInfo
getCategory
in class AProgramInfo<IProgramInfo.Props>
Comedy
IProgramInfo.Props.CATEGORY
,
IBasicProgramInfo.getCategory()
public Date getStartDateTime()
IBasicProgramInfo
getStartDateTime
in interface IBasicProgramInfo
getStartDateTime
in interface IProgramInfo
getStartDateTime
in class AProgramInfo<IProgramInfo.Props>
IProgramInfo.Props.START_DATE_TIME
,
IBasicProgramInfo.getStartDateTime()
public Date getEndDateTime()
IBasicProgramInfo
getEndDateTime
in interface IBasicProgramInfo
getEndDateTime
in interface IProgramInfo
getEndDateTime
in class AProgramInfo<IProgramInfo.Props>
IProgramInfo.Props.END_DATE_TIME
,
IBasicProgramInfo.getEndDateTime()
public String getSeriesID()
IBasicProgramInfo
getSeriesID
in interface IBasicProgramInfo
getSeriesID
in interface IProgramInfo
getSeriesID
in class AProgramInfo<IProgramInfo.Props>
IProgramInfo.Props.SERIES_ID
,
IBasicProgramInfo.getSeriesID()
public String getProgramID()
IBasicProgramInfo
getProgramID
in interface IBasicProgramInfo
getProgramID
in interface IProgramInfo
getProgramID
in class AProgramInfo<IProgramInfo.Props>
IProgramInfo.Props.PROGRAM_ID
,
IBasicProgramInfo.getProgramID()
public Integer getChannelID()
IBasicChannelInfo
getChannelID
in interface IBasicChannelInfo
getChannelID
in interface IProgramInfo
getChannelID
in class AProgramInfo<IProgramInfo.Props>
11123
IProgramInfo.Props.CHANNEL_ID
,
IBasicChannelInfo.getChannelID()
public String getChannelSign()
IBasicChannelInfo
getChannelSign
in interface IBasicChannelInfo
getChannelSign
in interface IProgramInfo
getChannelSign
in class AProgramInfo<IProgramInfo.Props>
PULS 4
IProgramInfo.Props.CHANNEL_SIGN
,
IBasicChannelInfo.getChannelSign()
public String getChannelNumber()
IBasicChannelInfo
getChannelNumber
in interface IBasicChannelInfo
getChannelNumber
in interface IProgramInfo
getChannelNumber
in class AProgramInfo<IProgramInfo.Props>
-
', '_
' or '.
'IRecorderChannelInfo.Props.CHANNEL_NUMBER
public Integer getFindID()
IProgramInfo
(UNIX_TIMESTAMP(program.starttime)/60/60/24)+719528
getFindID
in interface IProgramInfo
0
IProgramInfo.Props.FIND_ID
public Integer getParentID()
IProgramInfo
If this recording is a duplicate, the ID of the parent is specified here.
This is used in combination with IProgramRecordingType.Type.OVERRIDE_RECORD
.
getParentID
in interface IProgramInfo
IProgramInfo.Props.PARENT_ID
public Integer getSeason()
IProgramInfo
getSeason
in interface IProgramInfo
IProgramInfo.Props.SEASON
public Integer getEpisode()
IProgramInfo
getEpisode
in interface IProgramInfo
IProgramInfo.Props.EPISODE
public String getSyndicatedEpisode()
IProgramInfo
getSyndicatedEpisode
in interface IProgramInfo
IProgramInfo.Props.SYNDICATED_EPISODE
public String getInetRef()
IProgramInfo
getInetRef
in interface IProgramInfo
IProgramInfo.Props.INETREF
public String getChannelName()
IProgramInfo
getChannelName
in interface IProgramInfo
IProgramInfo.Props.CHANNEL_NAME
public String getChannelOuputFilters()
IProgramInfo
Allows to specify a set of filters to be used when playing back recordings from a given channel. This is useful for those with hardware encoders and more than one source, since filters are rarely a one-size-fits-all thing.
getChannelOuputFilters
in interface IProgramInfo
IProgramInfo.Props.CHANNEL_OUTPUT_FILTERS
public String getPathName()
IProgramInfo
getPathName
in interface IProgramInfo
IProgramInfo.Props.PATH_NAME
public String getBaseName()
IProgramInfo
getBaseName
in interface IProgramInfo
1000_20110701123000.mpg
IProgramInfo.Props.PATH_NAME
public String getPreviewImageName()
IProgramInfo
You can use the value returned by this function download the preview-image of the recording.
getPreviewImageName
in interface IProgramInfo
1000_20110701123000.mpg.png
public String getHostName()
IProgramInfo
getHostName
in interface IProgramInfo
IProgramInfo.Props.HOSTNAME
public Long getFileSize()
IProgramInfo
Hint: To print a human readable string you can use EncodingUtils.getFormattedFileSize(long)
.
getFileSize
in interface IProgramInfo
IProgramInfo.Props.FILESIZE
,
IProgramInfo.Props.FILESIZE_LOW
,
IProgramInfo.Props.FILESIZE_HIGH
,
EncodingUtils.getFormattedFileSize(long)
public void setFileSize(Long fileSize)
IProgramInfo
setFileSize
in interface IProgramInfo
fileSize
- the new file sizeIProgramInfo.Props.FILESIZE
,
IProgramInfo.Props.FILESIZE_LOW
,
IProgramInfo.Props.FILESIZE_HIGH
,
EncodingUtils.getFormattedFileSize(long)
public Date getOriginalAirdate()
IProgramInfo
getOriginalAirdate
in interface IProgramInfo
IProgramInfo.Props.ORIGINAL_AIRDATE
public Date getRecordingStartTime()
IProgramInfo
Note: This may be different to IProgramInfo.getStartDateTime()
.
getRecordingStartTime
in interface IProgramInfo
IProgramInfo.Props.REC_START_TIME
public Date getRecordingEndTime()
IProgramInfo
Note: This may be different to IProgramInfo.getEndDateTime()
.
getRecordingEndTime
in interface IProgramInfo
IProgramInfo.Props.REC_END_TIME
public int getRecordingDuration()
IProgramInfo
Note: This value may be different to IBasicProgramInfo.getDuration()
.
getRecordingDuration
in interface IProgramInfo
-1
if unknown.public int getRecordingStartOffset()
IProgramInfo
This value is the difference in minutes between IProgramInfo.getRecordingStartTime()
and IProgramInfo.getStartDateTime()
.
getRecordingStartOffset
in interface IProgramInfo
EncodingUtils.getMinutesDiff(Date, Date)
public int getRecordingEndOffset()
IProgramInfo
This value is the difference in minutes between IProgramInfo.getRecordingEndTime()
and IProgramInfo.getEndDateTime()
.
getRecordingEndOffset
in interface IProgramInfo
EncodingUtils.getMinutesDiff(Date, Date)
public int getRecordingElapsedMinutes()
IProgramInfo
If current time is before recording-start-time, then 0
is returned.
If current time is after recording-end-time, then IProgramInfo.getRecordingDuration()
is returned.
If current time is between recording-start- -and -end-time, EncodingUtils.getMinutesDiff(recStartDate,now)
is used to calculate the amount of minutes elapsed.
getRecordingElapsedMinutes
in interface IProgramInfo
EncodingUtils.getMinutesDiff(Date, Date)
public int getRecordingElapsedPercent()
IProgramInfo
getRecordingElapsedPercent
in interface IProgramInfo
public Integer getRecordingPriority()
IProgramInfo
getRecordingPriority
in interface IProgramInfo
-20
and 20
IProgramInfo.Props.REC_PRIORITY
public Integer getRecordingPriority2()
IProgramInfo
getRecordingPriority2
in interface IProgramInfo
IProgramInfo.Props.REC_PRIORITY2
public String getRecordingGroup()
IProgramInfo
getRecordingGroup
in interface IProgramInfo
Default
, LiveTV
or Deleted
IProgramInfo.Props.REC_GROUP
public String getPlayGroup()
IProgramInfo
getPlayGroup
in interface IProgramInfo
Default
IProgramInfo.Props.PLAY_GROUP
public String getStorageGroup()
IProgramInfo
getStorageGroup
in interface IProgramInfo
Default
IProgramInfo.Props.STORAGE_GROUP
public ProgramFlags getProgramFlags()
IProgramInfo
See IProgramFlags.Flags
for all possible values.
getProgramFlags
in interface IProgramInfo
IProgramInfo.Props.PROGRAM_FLAGS
public IProgramAudioProperties getAudioProperties()
IProgramInfo
See IProgramAudioProperties.Flags
for all possible values.
getAudioProperties
in interface IProgramInfo
IProgramInfo.Props.AUDIO_PROPERTIES
public IProgramVideoProperties getVideoProperties()
IProgramInfo
See IProgramVideoProperties.Flags
for all possible values.
getVideoProperties
in interface IProgramInfo
IProgramInfo.Props.VIDEO_PROPERTIES
public IProgramSubtitleType getSubtitleType()
IProgramInfo
See IProgramSubtitleType.Flags
for all possible values.
getSubtitleType
in interface IProgramInfo
IProgramInfo.Props.SUBTITLE_TYPE
public ProgramRecordingStatus getRecordingStatus()
IProgramInfo
The recording status is typically unknown
for a recording schedule
.
See IProgramRecordingStatus.Status
for all possible status values.
getRecordingStatus
in interface IProgramInfo
IProgramInfo.Props.REC_STATUS
public ProgramRecordingType getRecordingType()
IProgramInfo
See IProgramRecordingType.Type
for all possible types.
getRecordingType
in interface IProgramInfo
IProgramInfo.Props.REC_TYPE
public IProgramRecordingDupInType getRecordingDuplicationType()
IProgramInfo
See IProgramRecordingDupInType.Flags
for all possible flags.
getRecordingDuplicationType
in interface IProgramInfo
IProgramInfo.Props.DUP_IN
public IProgramRecordingDupMethodType getRecordingDuplicationMethod()
IProgramInfo
See IProgramRecordingDupMethodType.Flags
for all possible flags.
getRecordingDuplicationMethod
in interface IProgramInfo
IProgramInfo.Props.DUP_METHOD
public Integer getYear()
IProgramInfo
getYear
in interface IProgramInfo
IProgramInfo.Props.YEAR
public Integer getRecordingId()
IProgramInfo
Note: This is the ID of the mythtv scheduling rule,
stored in the database. Therefore multiple recordings may have the same
recording id!
If you need an unique id for a recording, use IProgramInfo.getUniqueRecordingId()
instead.
getRecordingId
in interface IProgramInfo
IProgramInfo.Props.REC_ID
public Float getTimeStretch()
IProgramInfo
getTimeStretch
in interface IProgramInfo
IProgramInfo.Props.TIMESTRETCH
public Float getStars()
IProgramInfo
getStars
in interface IProgramInfo
IProgramInfo.Props.STARS
public Date getLastModified()
IProgramInfo
Keeps track of the last time the entry was updated.
getLastModified
in interface IProgramInfo
IProgramInfo.Props.LAST_MODIFIED
public Integer getPartNumber()
IProgramInfo
getPartNumber
in interface IProgramInfo
IProgramInfo.Props.PART_NUMBER
public Integer getPartTotal()
IProgramInfo
getPartTotal
in interface IProgramInfo
IProgramInfo.Props.PART_TOTAL
public Boolean isDuplicate()
IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags)
instead.
IProgramInfo
isDuplicate
in interface IProgramInfo
IProgramInfo.Props.DUPLICATE
,
IProgramFlags.Flags.FL_DUPLICATE
public Boolean isShareable()
IProgramInfo
Signals that the used card input can be shared, e.g. on DVB cards. Till protocol version 57 this information was used by the scheduler.
isShareable
in interface IProgramInfo
IProgramInfo.Props.SHAREABLE
public Boolean isRepeat()
ProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags)
instead.
isRepeat
in interface IProgramInfo
IProgramInfo.Props.REPEAT
,
IProgramFlags.Flags.FL_REPEAT
public Boolean isChannelCommFree()
ProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags)
instead.
isChannelCommFree
in interface IProgramInfo
IProgramInfo.Props.CHAN_COMM_FREE
,
IProgramFlags.Flags.FL_CHANCOMMFREE
public Boolean hasAirDate()
IProgramInfo
hasAirDate
in interface IProgramInfo
IProgramInfo.Props.HAS_AIRDATE
public Integer getCardID()
IBasicInputInfo
getCardID
in interface IBasicInputInfo
getCardID
in interface IProgramInfo
IProgramInfo.Props.CARD_ID
,
IBasicInputInfo.getCardID()
public Integer getInputID()
IBasicInputInfo
getInputID
in interface IBasicInputInfo
getInputID
in interface IProgramInfo
IProgramInfo.Props.INPUT_ID
,
IBasicInputInfo.getInputID()
public Integer getSourceID()
IBasicInputInfo
getSourceID
in interface IBasicInputInfo
getSourceID
in interface IProgramInfo
IProgramInfo.Props.SOURCE_ID
,
IBasicInputInfo.getSourceID()
public static ProgramInfo valueOf(RecorderNextProgramInfo nextProgram, InputInfoFree input)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |