|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 use| Method 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 IProgramInfopublic String getTitle()
IBasicProgramInfo
getTitle in interface IBasicProgramInfogetTitle in interface IProgramInfogetTitle in class AProgramInfo<IProgramInfo.Props>IProgramInfo.Props.TITLE,
IBasicProgramInfo.getTitle()public String getSubtitle()
IBasicProgramInfo
getSubtitle in interface IBasicProgramInfogetSubtitle in interface IProgramInfogetSubtitle in class AProgramInfo<IProgramInfo.Props>IProgramInfo.Props.SUBTITLE,
IBasicProgramInfo.getSubtitle()public String getDescription()
IBasicProgramInfo
getDescription in interface IBasicProgramInfogetDescription in interface IProgramInfogetDescription in class AProgramInfo<IProgramInfo.Props>IProgramInfo.Props.DESCRIPTION,
IBasicProgramInfo.getDescription()public String getCategory()
IBasicProgramInfo
getCategory in interface IBasicProgramInfogetCategory in interface IProgramInfogetCategory in class AProgramInfo<IProgramInfo.Props>ComedyIProgramInfo.Props.CATEGORY,
IBasicProgramInfo.getCategory()public Date getStartDateTime()
IBasicProgramInfo
getStartDateTime in interface IBasicProgramInfogetStartDateTime in interface IProgramInfogetStartDateTime in class AProgramInfo<IProgramInfo.Props>IProgramInfo.Props.START_DATE_TIME,
IBasicProgramInfo.getStartDateTime()public Date getEndDateTime()
IBasicProgramInfo
getEndDateTime in interface IBasicProgramInfogetEndDateTime in interface IProgramInfogetEndDateTime in class AProgramInfo<IProgramInfo.Props>IProgramInfo.Props.END_DATE_TIME,
IBasicProgramInfo.getEndDateTime()public String getSeriesID()
IBasicProgramInfo
getSeriesID in interface IBasicProgramInfogetSeriesID in interface IProgramInfogetSeriesID in class AProgramInfo<IProgramInfo.Props>IProgramInfo.Props.SERIES_ID,
IBasicProgramInfo.getSeriesID()public String getProgramID()
IBasicProgramInfo
getProgramID in interface IBasicProgramInfogetProgramID in interface IProgramInfogetProgramID in class AProgramInfo<IProgramInfo.Props>IProgramInfo.Props.PROGRAM_ID,
IBasicProgramInfo.getProgramID()public Integer getChannelID()
IBasicChannelInfo
getChannelID in interface IBasicChannelInfogetChannelID in interface IProgramInfogetChannelID in class AProgramInfo<IProgramInfo.Props>11123IProgramInfo.Props.CHANNEL_ID,
IBasicChannelInfo.getChannelID()public String getChannelSign()
IBasicChannelInfo
getChannelSign in interface IBasicChannelInfogetChannelSign in interface IProgramInfogetChannelSign in class AProgramInfo<IProgramInfo.Props>PULS 4IProgramInfo.Props.CHANNEL_SIGN,
IBasicChannelInfo.getChannelSign()public String getChannelNumber()
IBasicChannelInfo
getChannelNumber in interface IBasicChannelInfogetChannelNumber in interface IProgramInfogetChannelNumber in class AProgramInfo<IProgramInfo.Props>-', '_' or '.'IRecorderChannelInfo.Props.CHANNEL_NUMBERpublic Integer getFindID()
IProgramInfo(UNIX_TIMESTAMP(program.starttime)/60/60/24)+719528
getFindID in interface IProgramInfo0IProgramInfo.Props.FIND_IDpublic Integer getParentID()
IProgramInfoIf 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 IProgramInfoIProgramInfo.Props.PARENT_IDpublic Integer getSeason()
IProgramInfo
getSeason in interface IProgramInfoIProgramInfo.Props.SEASONpublic Integer getEpisode()
IProgramInfo
getEpisode in interface IProgramInfoIProgramInfo.Props.EPISODEpublic String getSyndicatedEpisode()
IProgramInfo
getSyndicatedEpisode in interface IProgramInfoIProgramInfo.Props.SYNDICATED_EPISODEpublic String getInetRef()
IProgramInfo
getInetRef in interface IProgramInfoIProgramInfo.Props.INETREFpublic String getChannelName()
IProgramInfo
getChannelName in interface IProgramInfoIProgramInfo.Props.CHANNEL_NAMEpublic String getChannelOuputFilters()
IProgramInfoAllows 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 IProgramInfoIProgramInfo.Props.CHANNEL_OUTPUT_FILTERSpublic String getPathName()
IProgramInfo
getPathName in interface IProgramInfoIProgramInfo.Props.PATH_NAMEpublic String getBaseName()
IProgramInfo
getBaseName in interface IProgramInfo1000_20110701123000.mpgIProgramInfo.Props.PATH_NAMEpublic String getPreviewImageName()
IProgramInfoYou can use the value returned by this function download the preview-image of the recording.
getPreviewImageName in interface IProgramInfo1000_20110701123000.mpg.pngpublic String getHostName()
IProgramInfo
getHostName in interface IProgramInfoIProgramInfo.Props.HOSTNAMEpublic Long getFileSize()
IProgramInfo
Hint: To print a human readable string you can use EncodingUtils.getFormattedFileSize(long).
getFileSize in interface IProgramInfoIProgramInfo.Props.FILESIZE,
IProgramInfo.Props.FILESIZE_LOW,
IProgramInfo.Props.FILESIZE_HIGH,
EncodingUtils.getFormattedFileSize(long)public void setFileSize(Long fileSize)
IProgramInfo
setFileSize in interface IProgramInfofileSize - the new file sizeIProgramInfo.Props.FILESIZE,
IProgramInfo.Props.FILESIZE_LOW,
IProgramInfo.Props.FILESIZE_HIGH,
EncodingUtils.getFormattedFileSize(long)public Date getOriginalAirdate()
IProgramInfo
getOriginalAirdate in interface IProgramInfoIProgramInfo.Props.ORIGINAL_AIRDATEpublic Date getRecordingStartTime()
IProgramInfo
Note: This may be different to IProgramInfo.getStartDateTime().
getRecordingStartTime in interface IProgramInfoIProgramInfo.Props.REC_START_TIMEpublic Date getRecordingEndTime()
IProgramInfo
Note: This may be different to IProgramInfo.getEndDateTime().
getRecordingEndTime in interface IProgramInfoIProgramInfo.Props.REC_END_TIMEpublic 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 IProgramInfoEncodingUtils.getMinutesDiff(Date, Date)public int getRecordingEndOffset()
IProgramInfo
This value is the difference in minutes between IProgramInfo.getRecordingEndTime() and IProgramInfo.getEndDateTime().
getRecordingEndOffset in interface IProgramInfoEncodingUtils.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 IProgramInfoEncodingUtils.getMinutesDiff(Date, Date)public int getRecordingElapsedPercent()
IProgramInfo
getRecordingElapsedPercent in interface IProgramInfopublic Integer getRecordingPriority()
IProgramInfo
getRecordingPriority in interface IProgramInfo-20 and 20IProgramInfo.Props.REC_PRIORITYpublic Integer getRecordingPriority2()
IProgramInfo
getRecordingPriority2 in interface IProgramInfoIProgramInfo.Props.REC_PRIORITY2public String getRecordingGroup()
IProgramInfo
getRecordingGroup in interface IProgramInfoDefault, LiveTV or DeletedIProgramInfo.Props.REC_GROUPpublic String getPlayGroup()
IProgramInfo
getPlayGroup in interface IProgramInfoDefaultIProgramInfo.Props.PLAY_GROUPpublic String getStorageGroup()
IProgramInfo
getStorageGroup in interface IProgramInfoDefaultIProgramInfo.Props.STORAGE_GROUPpublic ProgramFlags getProgramFlags()
IProgramInfo
See IProgramFlags.Flags for all possible values.
getProgramFlags in interface IProgramInfoIProgramInfo.Props.PROGRAM_FLAGSpublic IProgramAudioProperties getAudioProperties()
IProgramInfo
See IProgramAudioProperties.Flags for all possible values.
getAudioProperties in interface IProgramInfoIProgramInfo.Props.AUDIO_PROPERTIESpublic IProgramVideoProperties getVideoProperties()
IProgramInfo
See IProgramVideoProperties.Flags for all possible values.
getVideoProperties in interface IProgramInfoIProgramInfo.Props.VIDEO_PROPERTIESpublic IProgramSubtitleType getSubtitleType()
IProgramInfo
See IProgramSubtitleType.Flags for all possible values.
getSubtitleType in interface IProgramInfoIProgramInfo.Props.SUBTITLE_TYPEpublic ProgramRecordingStatus getRecordingStatus()
IProgramInfo
The recording status is typically unknown
for a recording schedule.
See IProgramRecordingStatus.Status for all possible status values.
getRecordingStatus in interface IProgramInfoIProgramInfo.Props.REC_STATUSpublic ProgramRecordingType getRecordingType()
IProgramInfo
See IProgramRecordingType.Type for all possible types.
getRecordingType in interface IProgramInfoIProgramInfo.Props.REC_TYPEpublic IProgramRecordingDupInType getRecordingDuplicationType()
IProgramInfo
See IProgramRecordingDupInType.Flags for all possible flags.
getRecordingDuplicationType in interface IProgramInfoIProgramInfo.Props.DUP_INpublic IProgramRecordingDupMethodType getRecordingDuplicationMethod()
IProgramInfo
See IProgramRecordingDupMethodType.Flags for all possible flags.
getRecordingDuplicationMethod in interface IProgramInfoIProgramInfo.Props.DUP_METHODpublic Integer getYear()
IProgramInfo
getYear in interface IProgramInfoIProgramInfo.Props.YEARpublic 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 IProgramInfoIProgramInfo.Props.REC_IDpublic Float getTimeStretch()
IProgramInfo
getTimeStretch in interface IProgramInfoIProgramInfo.Props.TIMESTRETCHpublic Float getStars()
IProgramInfo
getStars in interface IProgramInfoIProgramInfo.Props.STARSpublic Date getLastModified()
IProgramInfoKeeps track of the last time the entry was updated.
getLastModified in interface IProgramInfoIProgramInfo.Props.LAST_MODIFIEDpublic Integer getPartNumber()
IProgramInfo
getPartNumber in interface IProgramInfoIProgramInfo.Props.PART_NUMBERpublic Integer getPartTotal()
IProgramInfo
getPartTotal in interface IProgramInfoIProgramInfo.Props.PART_TOTALpublic Boolean isDuplicate()
IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead.
IProgramInfo
isDuplicate in interface IProgramInfoIProgramInfo.Props.DUPLICATE,
IProgramFlags.Flags.FL_DUPLICATEpublic Boolean isShareable()
IProgramInfoSignals 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 IProgramInfoIProgramInfo.Props.SHAREABLEpublic Boolean isRepeat()
ProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead.
isRepeat in interface IProgramInfoIProgramInfo.Props.REPEAT,
IProgramFlags.Flags.FL_REPEATpublic Boolean isChannelCommFree()
ProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead.
isChannelCommFree in interface IProgramInfoIProgramInfo.Props.CHAN_COMM_FREE,
IProgramFlags.Flags.FL_CHANCOMMFREEpublic Boolean hasAirDate()
IProgramInfo
hasAirDate in interface IProgramInfoIProgramInfo.Props.HAS_AIRDATEpublic Integer getCardID()
IBasicInputInfo
getCardID in interface IBasicInputInfogetCardID in interface IProgramInfoIProgramInfo.Props.CARD_ID,
IBasicInputInfo.getCardID()public Integer getInputID()
IBasicInputInfo
getInputID in interface IBasicInputInfogetInputID in interface IProgramInfoIProgramInfo.Props.INPUT_ID,
IBasicInputInfo.getInputID()public Integer getSourceID()
IBasicInputInfo
getSourceID in interface IBasicInputInfogetSourceID in interface IProgramInfoIProgramInfo.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 | |||||||||