|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProgramInfo
An interface to get infos about a MythTV recording.
This object represents a finished, running, pending or scheduled MythTV recording. Depending on the type of a recording
and on the MythTV version, different recording properties may be returned.
This interface is property-aware. See the properties-list for all properties of this object.
See the response examples on how a returned recording looks like.
See the usage examples on how to fetch the different types of recording lists.
<00>TITLE: Fringe - Grenzfälle des FBI | <01>SUBTITLE: Kontrolle | <02>DESCRIPTION: Der Sohn eines hochrangigen Massive Dynamic-Mitarbeiters wird entführt... | <03>CATEGORY: | <04>CHANNEL_ID: 11123 | <05>CHANNEL_NUMBER: 10123 | <06>CHANNEL_SIGN: PULS 4 | <07>CHANNEL_NAME: PULS 4 | <08>PATH_NAME: /var/lib/mythtv/recordings/11123_20110401233600.mpg | <09>FILESIZE_HIGH: 0 | <10>FILESIZE_LOW: 0 | <11>START_DATE_TIME: Fri Apr 01 23:04:58 CEST 2011 | <12>END_DATE_TIME: Fri Apr 01 23:58:24 CEST 2011 | <13>DUPLICATE: false | <14>SHAREABLE: false | <15>FIND_ID: 0 | <16>HOSTNAME: brain | <17>SOURCE_ID: 1 | <18>CARD_ID: 1 | <19>INPUT_ID: 1 | <20>REC_PRIORITY: 1 | <21>REC_STATUS: -2=> {RECORDING} | <22>REC_ID: 330 | <23>REC_TYPE: 1=> {SINGLE_RECORD} | <24>DUP_IN: 15=> {DUPS_IN_RECORDED,DUPS_IN_OLD_RECORDED,DUPS_IN_ALL} | <25>DUP_METHOD: 6=> {DUP_CHECK_SUB,DUP_CHECK_DESC,DUP_CHECK_SUB_DESC} | <26>REC_START_TIME: Fri Apr 01 23:36:00 CEST 2011 | <27>REC_END_TIME: Fri Apr 01 23:58:24 CEST 2011 | <28>REPEAT: false | <29>PROGRAM_FLAGS: 0=> {} | <30>REC_GROUP: Default | <31>CHAN_COMM_FREE: false | <32>CHANNEL_OUTPUT_FILTERS: | <33>SERIES_ID: | <34>PROGRAM_ID: | <35>LAST_MODIFIED: Fri Apr 01 23:35:39 CEST 2011 | <36>STARS: 0.000000 | <37>ORIGINAL_AIRDATE: | <38>HAS_AIRDATE: false | <39>PLAY_GROUP: Default | <40>REC_PRIORITY2: 0 | <41>PARENT_ID: 0 | <42>STORAGE_GROUP: Default | <43>AUDIO_PROPERTIES: 1=> {AUD_STEREO} | <44>VIDEO_PROPERTIES: 0=> {} | <45>SUBTITLE_TYPE: 0=> {} | <46>YEAR: 0 <00>TITLE: Malcolm mittendrin | <01>SUBTITLE: | <02>DESCRIPTION: Malcolm verteidigt Reese Serie mit Bryan Cranston, Christopher Masterson Programminformation nur noch bis Ende Dezember 2010 | <03>CATEGORY: Serie | <04>CHANNEL_ID: 1000 | <05>CHANNEL_NUMBER: 1 | <06>CHANNEL_SIGN: PRO7 | <07>CHANNEL_NAME: Pro7 | <08>PATH_NAME: | <09>FILESIZE_HIGH: 0 | <10>FILESIZE_LOW: 0 | <11>START_DATE_TIME: Thu Apr 14 10:15:00 CEST 2011 | <12>END_DATE_TIME: Thu Apr 14 10:45:00 CEST 2011 | <13>DUPLICATE: | <14>SHAREABLE: false | <15>FIND_ID: 0 | <16>HOSTNAME: | <17>SOURCE_ID: 1 | <18>CARD_ID: 1 | <19>INPUT_ID: 1 | <20>REC_PRIORITY: 0 | <21>REC_STATUS: -2=> {RECORDING} | <22>REC_ID: 1 | <23>REC_TYPE: 1=> {SINGLE_RECORD} | <24>DUP_IN: 15=> {DUPS_IN_RECORDED,DUPS_IN_OLD_RECORDED,DUPS_IN_BOTH,DUPS_IN_ALL,DUPS_NEW_EPI} | <25>DUP_METHOD: 6=> {DUP_CHECK_SUB,DUP_CHECK_DESC,DUP_CHECK_SUB_DESC} | <26>REC_START_TIME: Thu Apr 14 10:39:00 CEST 2011 | <27>REC_END_TIME: Thu Apr 14 10:45:00 CEST 2011 | <28>REPEAT: false | <29>PROGRAM_FLAGS: 0=> {} | <30>REC_GROUP: Default | <31>CHAN_COMM_FREE: false | <32>CHANNEL_OUTPUT_FILTERS: | <33>SERIES_ID: 227250734 | <34>PROGRAM_ID: | <35>LAST_MODIFIED: Thu Apr 14 10:39:19 CEST 2011 | <36>STARS: 0.0 | <37>ORIGINAL_AIRDATE: Thu Apr 14 02:00:00 CEST 2011 | <38>HAS_AIRDATE: false link)link)link)link)link)link)link)link)link)link)link)link)link)link)link)link)link)link)link)link)link)link)
| Nested Class Summary | |
|---|---|
static class |
IProgramInfo.Props
The properties of an IProgramInfo response. |
| Method Summary | |
|---|---|
IProgramAudioProperties |
getAudioProperties()
Gets the recording audio properties. |
String |
getBaseName()
Gets the recording file base name. |
Integer |
getCardID()
Gets the id of the recorder, that will record this program. |
String |
getCategory()
Gets the category of this program. |
Integer |
getChannelID()
Gets the channel id of this program. |
String |
getChannelName()
Gets the channel name. |
String |
getChannelNumber()
Gets the channel number of this program. |
String |
getChannelOuputFilters()
Output filters. |
String |
getChannelSign()
Gets the channel station abbreviation of this program. |
String |
getDescription()
Gets the description of this program. |
Date |
getEndDateTime()
Gets the end-date and -time of this 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 the recorder input, that will be used for recording. |
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. |
IProgramFlags |
getProgramFlags()
Gets additional status flags of the recording. |
String |
getProgramID()
Gets the program id of this program. |
List<String> |
getPropertyValues()
Returns all property values as strings. |
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. |
IProgramRecordingStatus |
getRecordingStatus()
Gets the current recording status. |
IProgramRecordingType |
getRecordingType()
Gets the recording type. |
Integer |
getSeason()
Gets the season of the program. |
String |
getSeriesID()
Gets the series id of this program. |
Integer |
getSourceID()
Gets the source id of this program. |
Float |
getStars()
Rating. |
Date |
getStartDateTime()
Gets the start-date and -time of this program. |
String |
getStorageGroup()
Gets the name of the storage group storing the recording. |
String |
getSubtitle()
Gets the subtitle of this program. |
IProgramSubtitleType |
getSubtitleType()
Gets the recording subtitle properties. |
String |
getSyndicatedEpisode()
Gets the syndicated episode of the program. |
Float |
getTimeStretch()
Deprecated. 23, replaced by getPlayGroup() |
String |
getTitle()
Gets the title of this program. |
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 IProgramFlags#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 IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead. |
Boolean |
isShareable()
Deprecated. 57 |
void |
setFileSize(Long fileSize)
Updates the size of the recording. |
| 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 |
| Method Detail |
|---|
List<String> getPropertyValues()
IPropertyAware
getPropertyValues in interface IPropertyAware<IProgramInfo.Props>String getUniqueRecordingId()
This id has the format: [channel-id]_[recording-start-time]
Note: This id is different to IBasicProgramInfo.getUniqueProgramId()
String getTitle()
getTitle in interface IBasicProgramInfoIProgramInfo.Props.TITLE,
IBasicProgramInfo.getTitle()String getSubtitle()
getSubtitle in interface IBasicProgramInfoIProgramInfo.Props.SUBTITLE,
IBasicProgramInfo.getSubtitle()String getDescription()
getDescription in interface IBasicProgramInfoIProgramInfo.Props.DESCRIPTION,
IBasicProgramInfo.getDescription()String getCategory()
getCategory in interface IBasicProgramInfoComedyIProgramInfo.Props.CATEGORY,
IBasicProgramInfo.getCategory()Date getStartDateTime()
Note: This value may be different to getRecordingStartTime().
getStartDateTime in interface IBasicProgramInfoIProgramInfo.Props.START_DATE_TIME,
IBasicProgramInfo.getStartDateTime()Date getEndDateTime()
Note: This value may be different to getRecordingEndTime().
getEndDateTime in interface IBasicProgramInfoIProgramInfo.Props.END_DATE_TIME,
IBasicProgramInfo.getEndDateTime()String getSeriesID()
This is used by MythTV for duplication checks.
getSeriesID in interface IBasicProgramInfoIProgramInfo.Props.SERIES_ID,
IBasicProgramInfo.getSeriesID()String getProgramID()
This is used by MythTV for duplication checks.
getProgramID in interface IBasicProgramInfoIProgramInfo.Props.PROGRAM_ID,
IBasicProgramInfo.getProgramID()Integer getChannelID()
getChannelID in interface IBasicChannelInfo11123IProgramInfo.Props.CHANNEL_ID,
IBasicChannelInfo.getChannelID()String getChannelSign()
getChannelSign in interface IBasicChannelInfoPULS 4IProgramInfo.Props.CHANNEL_SIGN,
IBasicChannelInfo.getChannelSign()String getChannelNumber()
getChannelNumber in interface IBasicChannelInfoIProgramInfo.Props.CHANNEL_NUMBER,
IBasicChannelInfo.getChannelNumber()Integer getCardID()
getCardID in interface IBasicInputInfoIProgramInfo.Props.CARD_ID,
IBasicInputInfo.getCardID()Integer getInputID()
getInputID in interface IBasicInputInfoIProgramInfo.Props.INPUT_ID,
IBasicInputInfo.getInputID()Integer getSourceID()
getSourceID in interface IBasicInputInfoIProgramInfo.Props.SOURCE_ID,
IBasicInputInfo.getSourceID()Boolean isDuplicate()
57, use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead.
IProgramInfo.Props.DUPLICATE,
IProgramFlags.Flags.FL_DUPLICATEBoolean isShareable()
57
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.
IProgramInfo.Props.SHAREABLEBoolean isRepeat()
57, use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead.
IProgramInfo.Props.REPEAT,
IProgramFlags.Flags.FL_REPEATBoolean isChannelCommFree()
57, use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead.
IProgramInfo.Props.CHAN_COMM_FREE,
IProgramFlags.Flags.FL_CHANCOMMFREEBoolean hasAirDate()
57
IProgramInfo.Props.HAS_AIRDATEInteger getFindID()
(UNIX_TIMESTAMP(program.starttime)/60/60/24)+719528
0IProgramInfo.Props.FIND_IDInteger getParentID()
If this recording is a duplicate, the ID of the parent is specified here.
This is used in combination with IProgramRecordingType.Type.OVERRIDE_RECORD.
IProgramInfo.Props.PARENT_IDInteger getSeason()
IProgramInfo.Props.SEASONInteger getEpisode()
IProgramInfo.Props.EPISODEString getSyndicatedEpisode()
IProgramInfo.Props.SYNDICATED_EPISODEString getInetRef()
IProgramInfo.Props.INETREFString getChannelName()
IProgramInfo.Props.CHANNEL_NAMEString getChannelOuputFilters()
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.
IProgramInfo.Props.CHANNEL_OUTPUT_FILTERSString getPathName()
IProgramInfo.Props.PATH_NAMEString getPreviewImageName()
You can use the value returned by this function download the preview-image of the recording.
1000_20110701123000.mpg.pngString getBaseName()
1000_20110701123000.mpgIProgramInfo.Props.PATH_NAMEString getHostName()
IProgramInfo.Props.HOSTNAMELong getFileSize()
Hint: To print a human readable string you can use EncodingUtils.getFormattedFileSize(long).
IProgramInfo.Props.FILESIZE,
IProgramInfo.Props.FILESIZE_LOW,
IProgramInfo.Props.FILESIZE_HIGH,
EncodingUtils.getFormattedFileSize(long)void setFileSize(Long fileSize)
fileSize - the new file sizeIProgramInfo.Props.FILESIZE,
IProgramInfo.Props.FILESIZE_LOW,
IProgramInfo.Props.FILESIZE_HIGH,
EncodingUtils.getFormattedFileSize(long)Date getOriginalAirdate()
IProgramInfo.Props.ORIGINAL_AIRDATEDate getRecordingStartTime()
Note: This may be different to getStartDateTime().
IProgramInfo.Props.REC_START_TIMEDate getRecordingEndTime()
Note: This may be different to getEndDateTime().
IProgramInfo.Props.REC_END_TIMEint getRecordingStartOffset()
This value is the difference in minutes between getRecordingStartTime() and getStartDateTime().
EncodingUtils.getMinutesDiff(Date, Date)int getRecordingEndOffset()
This value is the difference in minutes between getRecordingEndTime() and getEndDateTime().
EncodingUtils.getMinutesDiff(Date, Date)int getRecordingDuration()
Note: This value may be different to IBasicProgramInfo.getDuration().
-1 if unknown.int getRecordingElapsedMinutes()
If current time is before recording-start-time, then 0 is returned.
If current time is after recording-end-time, then 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.
EncodingUtils.getMinutesDiff(Date, Date)int getRecordingElapsedPercent()
Integer getRecordingPriority()
-20 and 20IProgramInfo.Props.REC_PRIORITYInteger getRecordingPriority2()
IProgramInfo.Props.REC_PRIORITY2String getRecordingGroup()
Default, LiveTV or DeletedIProgramInfo.Props.REC_GROUPString getPlayGroup()
DefaultIProgramInfo.Props.PLAY_GROUPString getStorageGroup()
DefaultIProgramInfo.Props.STORAGE_GROUPIProgramFlags getProgramFlags()
See IProgramFlags.Flags for all possible values.
IProgramInfo.Props.PROGRAM_FLAGSIProgramAudioProperties getAudioProperties()
See IProgramAudioProperties.Flags for all possible values.
IProgramInfo.Props.AUDIO_PROPERTIESIProgramVideoProperties getVideoProperties()
See IProgramVideoProperties.Flags for all possible values.
IProgramInfo.Props.VIDEO_PROPERTIESIProgramSubtitleType getSubtitleType()
See IProgramSubtitleType.Flags for all possible values.
IProgramInfo.Props.SUBTITLE_TYPEInteger getRecordingId()
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 getUniqueRecordingId() instead.
IProgramInfo.Props.REC_IDIProgramRecordingStatus getRecordingStatus()
The recording status is typically unknown
for a recording schedule.
See IProgramRecordingStatus.Status for all possible status values.
IProgramInfo.Props.REC_STATUSIProgramRecordingType getRecordingType()
See IProgramRecordingType.Type for all possible types.
IProgramInfo.Props.REC_TYPEIProgramRecordingDupInType getRecordingDuplicationType()
See IProgramRecordingDupInType.Flags for all possible flags.
IProgramRecordingDupMethodType getRecordingDuplicationMethod()
See IProgramRecordingDupMethodType.Flags for all possible flags.
Integer getYear()
IProgramInfo.Props.YEARInteger getPartNumber()
IProgramInfo.Props.PART_NUMBERInteger getPartTotal()
IProgramInfo.Props.PART_TOTALFloat getStars()
IProgramInfo.Props.STARSFloat getTimeStretch()
getPlayGroup()
IProgramInfo.Props.TIMESTRETCHDate getLastModified()
Keeps track of the last time the entry was updated.
IProgramInfo.Props.LAST_MODIFIED
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||