|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRecorder
An interface to communicate with a MythTV recorder.
See the usage examples for a list of things you can do with a recorder.
MythProtoVersion
annotation. Additionally the lower bound of the version range is documented with the @since
javadoc
tag, whereas the upper bound is documented with the @deprecated
tag.
Extended Version Ranges:
Please note that many functions are usable (maybe with some restrictions) beyond the given protocol range,
if an alternative set of functions can be used to achieve the same result. If such an "extended" version-range is
available for a function, this is mentioned as "fallback-from"- and "fallback-to"-version in the functions javadoc.
Supported Versions:
Which protocol versions are in general supported by the jMythAPI can be seen in the enumeration ProtocolVersion
.
backend
and register as a client:IBackend backend = BackendFactory.createBackend(...);
backend.connect();
backend.annotatePlayback(...);
reference
to a recorder:
IRecorderInfo recorderInfo = backend.getNextFreeRecorder();
IRecorderInfo recorderInfo = backend.getRecorderForProgram(IProgramInfo);
IRecorderInfo recorderInfo = backend.getRecorderForNum(Integer);
IRecorder recorder = backend.getRecorder(IRecorderInfo);
encoders
.
Use the recorder:
Afterwards you can use any function provided by this interface to query and control your recorder.
See the usage examples for some examples.
Disconnect from the recorder:
To disconnect from the recorder, recorder.close()
needs to be called.
// the connected backend IBackend backend = ...; // searching for the next free recorder IRecorderInfo recorderInfo = backend.getNextFreeRecorder(); if(recorderInfo == null) { System.out.println("No free recorder available"); } else { // connect to the recorder IRecorder recorder = backend.getRecorder(recorderInfo); // get all channels available on this recorder List<IRecorderChannelInfo> channels = recorder.getChannelInfos(); for(IRecorderChannelInfo channel : channels) { System.out.println(String.format("Channel %d: %s",channel.getChannelID(),channel.getChannelName())); } // close recorder connection recorder.close(); }
link
)
All supported protocol version
,
getRecorder
,
getRecorders
,
getFreeRecorders
,
getRecorderIDs
,
getFreeRecorderIDs
,
getNextFreeRecorder
Method Summary | ||
---|---|---|
IRingBuffer |
annotateRingBuffer()
Deprecated. 20 |
|
boolean |
cancelNextRecording(Boolean cancel)
Tells the recorder to cancel or continue the next recording. |
|
Integer |
changeBrightness(boolean up)
Changes the brightness of a recording. |
|
Integer |
changeBrightness(EPictureAdjustmentType adjustmentType,
boolean up)
Changes the brightness value. |
|
boolean |
changeChannel(EChannelChangeDirection direction)
Changes to the next or previous channel. |
|
boolean |
changeChannel(int direction)
Changes to the next or previous channel. |
|
Integer |
changeColour(boolean up)
Changes the colour of a recording. |
|
Integer |
changeColour(EPictureAdjustmentType adjustmentType,
boolean up)
Changes the colour value. |
|
Integer |
changeContrast(boolean up)
Changes the contrast of a recording. |
|
Integer |
changeContrast(EPictureAdjustmentType adjustmentType,
boolean up)
Changes the contrast value. |
|
Integer |
changeHue(boolean up)
Changes the hue value of a recording. |
|
Integer |
changeHue(EPictureAdjustmentType adjustmentType,
boolean up)
Changes the hue value. |
|
boolean |
checkChannel(String channelNumber)
Checks if named channel exists on current tuner. |
|
IRecorderChannelPrefixStatus |
checkChannelPrefix(String channelNumberPrefix)
Checks a channel-number prefix against the channels in the MythTV-DB. |
|
void |
close()
Closes the current recorder connection. |
|
Map<Long,Long> |
fillDurationMap(long start,
long end)
|
|
Map<Long,Long> |
fillPositionMap(long frameNumberStart,
long frameNumberEnd)
Returns the keyframe position map. |
|
boolean |
finishRecording()
Tells the recorder to stop recording, but only after "overrecord" seconds. |
|
|
getBasicChannelInfos()
Gets a list of all known channels. |
|
Integer |
getBrightness()
Gets the brightness of a recording. |
|
IRecorderChannelInfo |
getChannelInfo(IBasicChannelInfo channelInfo)
Gets detailed informations about the given channel. |
|
IRecorderChannelInfo |
getChannelInfo(Integer chanID)
Gets informations about the given channel. |
|
List<IRecorderChannelInfo> |
getChannelInfos()
Gets a list of all known channels. |
|
Map<Integer,IRecorderNextProgramInfo> |
getChannelsNextProgramInfoMap(Date startTime)
Gets a map containing the next programs of all channels. |
|
Integer |
getColour()
Gets the colour of a recording. |
|
List<String> |
getConnectedInputs()
Deprecated. 37 (fallback-to: -1) |
|
Integer |
getContrast()
Gets the contrast of a recording. |
|
|
getCurrentChannel()
Gets the currently active channel of the recorder. |
|
IProgramInfo |
getCurrentRecording()
Returns the recorders current recording. |
|
long |
getFilePosition()
Returns the total number of bytes written by the recorder. |
|
float |
getFrameRate()
Returns the recording frame rate. |
|
long |
getFramesWritten()
Returns the number of frames written to disk. |
|
IFreeInputList |
getFreeInputs()
Gets all free inputs of the recorder. |
|
Integer |
getHue()
Gets the hue of a recording. |
|
String |
getInput()
Gets the name of the current recorder input. |
|
String |
getInputName()
Deprecated. 21, use getInput() instead. |
|
long |
getKeyframePosition(long frameNumber)
Returs the byte position for the given frame number. |
|
long |
getMaxBitrate()
Gets the maximum bitrate a recorder can output. |
|
IRecorderNextProgramInfo |
getNextProgramInfo(IBasicChannelInfo channelInfo,
EChannelBrowseDirection direction,
Date startTime)
Gets the next program on the specified channel. |
|
IRecorderNextProgramInfo |
getNextProgramInfo(String channelnumber,
Integer chanID,
EChannelBrowseDirection direction,
Date startTime)
Gets the next program on the specified channel. |
|
List<IRecorderNextProgramInfo> |
getNextProgramInfos(Date startTime)
Gets a list containing the next programs of all channels. |
|
IRecorderProgramInfo |
getProgramInfo()
Deprecated. 21 (fallback-to: -1), use getNextProgramInfo instead. |
|
int |
getRecorderID()
Gets the id of this recorder |
|
IProgramInfo |
getRecording()
Returns the recorders current recording. |
|
IRemoteEncoder |
getRemoteEncoder()
Gets the remote-encoder object. |
|
boolean |
isRecording()
Checks if the recorder is actually recording. |
|
boolean |
pause()
Tells the recorder to pause a recorder. |
|
boolean |
setChannel(String channelNumber)
Changes to a named channel on the current tuner. |
|
boolean |
setInput(String inputName)
Tells the recorder to change to the specified input. |
|
boolean |
setLiveTvRecording()
Tells the recorder to keep a LiveTV recording. |
|
boolean |
setNextLiveTvDirectory(String path)
Changes LiveTV recording directory. |
|
int |
setSignalMonitoringRate(int rate,
boolean notifyFrontend)
Sets the signal monitoring rate. |
|
boolean |
shouldSwitchCard(Integer channelID)
Checks if named channel exists on current tuner, or another tuner. |
|
boolean |
signalFrontendReady()
Tells the recorder that the frontend is up and ready. |
|
boolean |
spawnLiveTV()
Tells the recorder to start a "Live TV" recording. |
|
boolean |
spawnLiveTV(boolean pictureInPicture,
IRecorderChannelInfo recorderChannelInfo)
Tells the recorder to start a "Live TV" recording. |
|
boolean |
spawnLiveTV(boolean pictureInPicture,
String channelNumber)
Tells the recorder to start a "Live TV" recording. |
|
boolean |
stopLiveTv()
Tells the recorder to stop a "Live TV" recording. |
|
boolean |
stopPlaying()
Deprecated. 20 |
|
String |
switchToNextInput()
Tells the recorder to switch to the next input. |
|
boolean |
toggleChannelFavorite()
Adds or removes the current channel from the favorite channel list. |
|
boolean |
toggleChannelFavorite(String channelGroup)
Adds or removes the current channel to or from the given channel group. |
|
boolean |
toggleInputs()
Deprecated. 27 (fallback-to: -1), replaced by setInput(String) and switchToNextInput() . |
|
long |
waitForFramesWritten(long desiredFrames)
Wait for number of frames written. |
|
boolean |
waitForIsRecording(long timeoutMs)
Wait for recording. |
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Method Detail |
---|
void close() throws IOException
close
in interface Closeable
IOException
- on communication errorsint getRecorderID()
IRemoteEncoder getRemoteEncoder()
boolean signalFrontendReady() throws IOException
This is required e.g. if the backend needs to transmit the ASK_RECORDING
message to the frontend.
boolean stopPlaying() throws IOException
stopLiveTv()
to stop streaming live TV.
boolean spawnLiveTV() throws IOException
stopLiveTv()
to stop streaming live TV.
boolean spawnLiveTV(boolean pictureInPicture, IRecorderChannelInfo recorderChannelInfo) throws IOException
stopLiveTv()
to stop streaming live TV.
pictureInPicture
- specifies if picture in picture should be used. (Since 20).recorderChannelInfo
- the channel to swith the recorder to. (Since 34).
true
if the backend returned OK
.
IOException
- on communication errors.spawnLiveTV(boolean, String)
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 20 | 2005-11-05 | Changelog, SVN-Rev.: 7739 |
Changed | 34 | 2007-04-13 | Changelog, SVN-Rev.: 13230 |
Removed | -1 |
boolean spawnLiveTV(boolean pictureInPicture, String channelNumber) throws IOException
annotateRingBuffer()
to get access to this ringbuffer.
If this function is called prior to 34, setChannel(String)
is used to switch to the desired channel.
pictureInPicture
- specifies if picture in picture should be used. (Since 20).channelNumber
- the channel number to switch to. (Since 34).
true
if the backend returned OK
.
IOException
- on communication errorsIMythCommand.QUERY_RECORDER_SETUP_RING_BUFFER
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 20 | 2005-11-05 | Changelog, SVN-Rev.: 7739 |
Changed | 34 | 2007-04-13 | Changelog, SVN-Rev.: 13230 |
Removed | -1 |
boolean stopLiveTv() throws IOException
spawnLiveTV()
to start playing Live TV.
boolean isRecording() throws IOException
waitForIsRecording(long)
if you need to wait till the recorder is recording.
boolean waitForIsRecording(long timeoutMs) throws IOException, InterruptedException
Checks if the recorder is actually recording until recording has been started or the timeout has reached.
timeoutMs
- the timeout in ms
true
if the recorder is currently recording
IOException
- on communication errors
InterruptedException
- if the thread was interruptedboolean finishRecording() throws IOException
boolean setLiveTvRecording() throws IOException
IRingBuffer annotateRingBuffer() throws IOException
IProgramInfo getRecording() throws IOException
null
on live-tv recordings.
null
if the
recorder is currently not recording.
IOException
- on communication errorsQUERY_RECORDER_GET_RECORDING
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 20 | 2005-11-05 | Changelog, SVN-Rev.: 7739 |
Removed | -1 |
IProgramInfo getCurrentRecording() throws IOException
isRecording()
if this recorder is busy and if it is not, it just returns null
.
null
if the recorder
is currently not recording.
IOException
- on communication errorsQUERY_RECORDER_GET_CURRENT_RECORDING
Version | Date | Additional Version Info | |
---|---|---|---|
Fallback | 00 | The function can be can be used with restrictions starting with version 0. | |
Added | 19 | 2005-10-09 | Changelog, SVN-Rev.: 7427 |
Removed | -1 |
IRecorderProgramInfo getProgramInfo() throws IOException
getNextProgramInfo
instead.
This returns information about the program that could be seen on the current channel of the recorder.
getNextProgramInfo
is used to fetch the information.
IOException
- on communication errorsQUERY_RECORDER_GET_PROGRAM_INFO
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 20 | 2005-11-05 | Changelog, SVN-Rev.: 7739 |
Removed | 21 | 2005-11-10 | Changelog, SVN-Rev.: 7826 |
Fallback | -1 | The function can be can be used with restrictions till version 77. |
IRecorderNextProgramInfo getNextProgramInfo(IBasicChannelInfo channelInfo, EChannelBrowseDirection direction, Date startTime) throws IOException
This returns information about the program that would be seen, if we changed the channel using the given direction.
SAME
to query the program on the given channel.
But if SAME
is used, the channel-info must not be null
,
otherwise the backend will fallback to the first available channel.
channelInfo
- the channel to start browsing.direction
- the direction to browse.startTime
- the starting time that should be used for the query
IOException
- on communication errorsQUERY_RECORDER_GET_NEXT_PROGRAM_INFO
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Removed | -1 |
IRecorderNextProgramInfo getNextProgramInfo(String channelnumber, Integer chanID, EChannelBrowseDirection direction, Date startTime) throws IOException
This returns information about the program that would be seen, if we changed the channel using the given direction.
SAME
to query the program on the given channel.
But if SAME
is used, the channel-info must not be null
,
otherwise the backend will fallback to the first available channel.
channelnumber
- the number of the channel to start browsingchanID
- the id of the channeldirection
- the direction to browse.startTime
- the starting time that should be used for the query
IOException
- on communication errorsQUERY_RECORDER_GET_NEXT_PROGRAM_INFO
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Removed | -1 |
List<IRecorderNextProgramInfo> getNextProgramInfos(Date startTime) throws IOException
This function internally uses getChannelsNextProgramInfoMap(Date)
.
IRecorder recorder = ...; // an already connected recorder // query all currently distributed programs List<IRecorderNextProgramInfo> nextPrograms = recorder.getNextProgramInfos(null); for(IRecorderNextProgramInfo nextProgram : nextPrograms) { // skipping invalid programs if(!nextProgram.isValid()) continue; // print program info System.out.println(String.format( "%1$tF %1$tT | %2$tF %2$tT | %3$3d min | %4$5s | %5$s", nextProgram.getStartDateTime(), nextProgram.getEndDateTime(), nextProgram.getDuration(), nextProgram.getChannelSign(), nextProgram.getFullTitle() )); }
2012-01-01 14:55:01 | 2012-01-01 16:30:01 | 95 min | PRO7 | Sind wir endlich fertig? 2012-01-01 15:10:01 | 2012-01-01 16:40:01 | 90 min | ARD | Sterne über dem Eis 2012-01-01 13:45:01 | 2012-01-01 17:05:01 | 200 min | ZDF | ZDF SPORTextra 2012-01-01 15:10:01 | 2012-01-01 18:45:01 | 215 min | RTL | Die ultimative Chart Show - Die erfolgreichsten Hits des Jahres 2011 2012-01-01 14:10:01 | 2012-01-01 15:45:01 | 95 min | SAT.1 | Die Schöne und das Biest 2012-01-01 14:45:01 | 2012-01-01 15:30:01 | 45 min | BR3 | Als die Fremden kamen - Vom Winterurlaub in Tirol 2012-01-01 14:45:01 | 2012-01-01 15:30:01 | 45 min | SWBW | Neues aus dem Glottertal 2012-01-01 13:55:01 | 2012-01-01 15:50:01 | 115 min | ORF1 | FIS Weltcup Skispringen - HS 140 - Das Springen 2012-01-01 15:15:01 | 2012-01-01 17:00:01 | 105 min | ORF2 | Die Zürcher Verlobung 2012-01-01 14:45:01 | 2012-01-01 16:00:01 | 75 min | 3SAT | Willi und die Wunder dieser Welt 2012-01-01 14:30:01 | 2012-01-01 16:05:01 | 95 min | KABE1 | Legende 2012-01-01 15:15:01 | 2012-01-01 16:30:01 | 75 min | SUPRT | Cosmo & Wanda - Wenn Elfen helfen: Alltagshelden - Die Alltagshelden 2012-01-01 14:35:01 | 2012-01-01 16:15:01 | 100 min | VOX | Nine Months 2012-01-01 15:15:01 | 2012-01-01 16:55:01 | 100 min | RTL2 | Der Todes-Twister 2012-01-01 14:55:01 | 2012-01-01 15:40:01 | 45 min | ARTE | Naturparadiese Afrikas - Äthiopien - Land der Extreme 2012-01-01 13:40:01 | 2012-01-01 15:20:01 | 100 min | ATV+ | Nach Ansage 2012-01-01 14:45:00 | 2012-01-01 16:30:00 | 105 min | PULS4 | Louis' unheimliche Begegnung mit den Außerirdischen
startTime
- the start time. if this is null
the current date is used.
IOException
- on communication errorsQUERY_RECORDER_GET_NEXT_PROGRAM_INFO
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Removed | -1 |
Map<Integer,IRecorderNextProgramInfo> getChannelsNextProgramInfoMap(Date startTime) throws IOException
This returns a map containing the channel-id as key and recorder-next-program info as value.
This method uses getNextProgramInfo(String, Integer, EChannelBrowseDirection, Date)
to loop
through all channels and to fetch the current channel program.
IRecorderChannelInfo getChannelInfo(Integer chanID) throws IOException
IBackend.setChannelInfo(String, IRecorderChannelInfo)
to change the properties of a channel.
IRecorderChannelInfo getChannelInfo(IBasicChannelInfo channelInfo) throws IOException
This uses the channel-id of the basic-channel-info object to fetch additional informations about the channel.
IBackend.setChannelInfo(String, IRecorderChannelInfo)
to change the properties of a channel.
channelInfo
- the desired channel
IOException
- on communication errorsgetChannelInfo(Integer)
,
QUERY_RECORDER_GET_CHANNEL_INFO
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 28 | 2006-03-28 | Changelog, SVN-Rev.: 9524 |
Removed | -1 |
<C extends IBasicChannelInfo> C getCurrentChannel() throws IOException
IBasicChannelInfo
object is returned, otherwise an IRecorderChannelInfo
object is returned.
// getting the current input of the recorder String recorderInput = recorder.getInput(); // getting the current recorder channel IBasicChannelInfo recorderChannel = recorder.getCurrentChannel(); // print infos System.out.println(String.format( "Recorder %d is using input: %s (channel: %s).", recorderId, recorderInput, recorderChannel==null?"-":recorderChannel.getChannelSign() ));
C
- the type of the channel information. This is either a IRecorderChannelInfo
or a IBasicChannelInfo
.
null
.
IOException
- on communication errors.List<IRecorderChannelInfo> getChannelInfos() throws IOException
This function uses getChannelsNextProgramInfoMap(Date)
to determine the channel-IDs of all known channels
and getChannelInfo(Integer)
to fetch the info object for each channel.
<0>CHANNEL_ID: 11123 | <1>SOURCE_ID: 1 | <2>CHANNEL_SIGN: PULS 4 | <3>CHANNEL_NUMBER: 10123 | <4>CHANNEL_NAME: PULS 4 | <5>XMLTV_ID:
<0>CHANNEL_ID: 12104 | <1>SOURCE_ID: 1 | <2>CHANNEL_SIGN: ServusTV | <3>CHANNEL_NUMBER: 11104 | <4>CHANNEL_NAME: ServusTV | <5>XMLTV_ID:
<0>CHANNEL_ID: 11120 | <1>SOURCE_ID: 1 | <2>CHANNEL_SIGN: ATV | <3>CHANNEL_NUMBER: 10120 | <4>CHANNEL_NAME: ATV | <5>XMLTV_ID:
<0>CHANNEL_ID: 11101 | <1>SOURCE_ID: 1 | <2>CHANNEL_SIGN: ORF1 | <3>CHANNEL_NUMBER: 10101 | <4>CHANNEL_NAME: ORF1 | <5>XMLTV_ID:
<0>CHANNEL_ID: 12102 | <1>SOURCE_ID: 1 | <2>CHANNEL_SIGN: 3SAT | <3>CHANNEL_NUMBER: 11102 | <4>CHANNEL_NAME: 3SAT | <5>XMLTV_ID:
<0>CHANNEL_ID: 11102 | <1>SOURCE_ID: 1 | <2>CHANNEL_SIGN: ORF2 W | <3>CHANNEL_NUMBER: 10102 | <4>CHANNEL_NAME: ORF2 W | <5>XMLTV_ID:
<0>CHANNEL_ID: 12103 | <1>SOURCE_ID: 1 | <2>CHANNEL_SIGN: ORF Sport Plus | <3>CHANNEL_NUMBER: 11103 | <4>CHANNEL_NAME: ORF Sport Plus | <5>XMLTV_ID:
<C extends IBasicChannelInfo> List<C> getBasicChannelInfos() throws IOException
IBasicChannelInfo
object is returned, otherwise an IRecorderChannelInfo
object is returned.
IRecorder recorder = ...; // an already connected recorder // getting all available channel List<IBasicChannelInfo> channels = recorder.getBasicChannelInfos(); System.out.println(String.format( "Id | Nr | Sign " )); for(IBasicChannelInfo channel : channels) { System.out.println(String.format( "%04d | %3s | %s", channel.getChannelID(),channel.getChannelNumber(), channel.getChannelSign() )); }
Id | Nr | Sign 1063 | 1 | PRO7 1064 | 5 | ARD 1065 | 6 | ZDF 1066 | 3 | RTL 1067 | 2 | SAT.1 1068 | 14 | BR3 1071 | 16 | SWBW 1072 | 10 | ORF1 1073 | 11 | ORF2 1074 | 18 | A9 1075 | 12 | 3SAT 1077 | 7 | KABE1 1078 | 15 | SUPRT 1079 | 8 | VOX 1080 | 4 | RTL2 1085 | 9 | ARTE 1091 | 13 | ATV+ 1095 | 17 | PULS4
String getInputName() throws IOException
getInput()
instead.
getInput()
is called instead.
String getInput() throws IOException
getInputName()
is called instead.
DVBInput
or Tuner 1
.
If the recorder is currently not active null
is returned.
IOException
- on communication errorsQUERY_RECORDER_GET_INPUT
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 27 | 2006-02-15 | Changelog, SVN-Rev.: 8973 |
Removed | -1 |
boolean setInput(String inputName) throws IOException
inputName
- the name of the input to change to.
true
if the input was switched successfully.
IOException
- on communication errorsQUERY_RECORDER_SET_INPUT
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 27 | 2006-02-15 | Changelog, SVN-Rev.: 8973 |
Removed | -1 |
boolean toggleInputs() throws IOException
setInput(String)
and switchToNextInput()
.
switchToNextInput()
is called instead.
true
if the backend respond with ok
.
IOException
- on communication errorsQUERY_RECORDER_TOGGLE_INPUTS
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Removed | 27 | 2006-02-15 | Changelog, SVN-Rev.: 8973 |
Fallback | -1 | The function can be can be used with restrictions till version 77. |
String switchToNextInput() throws IOException
toggleInputs()
is called.
IOException
- on communication errorsQUERY_RECORDER_SET_INPUT
Version | Date | Additional Version Info | |
---|---|---|---|
Fallback | 00 | The function can be can be used with restrictions starting with version 0. | |
Added | 27 | 2006-02-15 | Changelog, SVN-Rev.: 8973 |
Removed | -1 |
boolean checkChannel(String channelNumber) throws IOException
IRecorderChannelPrefixStatus checkChannelPrefix(String channelNumberPrefix) throws IOException
boolean changeChannel(EChannelChangeDirection direction) throws IOException
boolean changeChannel(int direction) throws IOException
boolean setChannel(String channelNumber) throws IOException
boolean shouldSwitchCard(Integer channelID) throws IOException
channelID
- the id of the channel
true
rue if the channel on another tuner and not current tuner,
false
otherwise.
This also returns false
if the channel id is unknown.
IOException
- on communication errors.QUERY_RECORDER_SHOULD_SWITCH_CARD
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 17 | 2005-05-24 | Changelog, SVN-Rev.: 6482 |
Removed | -1 |
boolean toggleChannelFavorite() throws IOException
boolean toggleChannelFavorite(String channelGroup) throws IOException
channelGroup
- the name of the channel group (since 45).
If this is null
, ProtocolConstants.CHANNEL_GROUP_DEFAULT
is used as
group.
true
if the recorder respond with OK
.
IOException
- on communication errors.QUERY_RECORDER_TOGGLE_CHANNEL_FAVORITE
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 45 | 2009-05-09 | Changelog, SVN-Rev.: 20523 |
Removed | -1 |
long getFramesWritten() throws IOException
waitForFramesWritten(long)
if you need to wait for a given amount of frames.
long waitForFramesWritten(long desiredFrames) throws IOException, InterruptedException
This function uses getFramesWritten()
to determine the current amount of frames written
and waits till the requested amount of frames was writte.
desiredFrames
- the amount of frames that should be written
IOException
- on communication errors
InterruptedException
- if the thread was interruptedQUERY_RECORDER_GET_FRAMES_WRITTEN
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Removed | -1 |
float getFrameRate() throws IOException
long getFilePosition() throws IOException
IFreeInputList getFreeInputs() throws IOException
List<String> getConnectedInputs() throws IOException
getFreeInputs()
and
getInput()
are used to determine the input names.
IOException
QUERY_RECORDER_GET_CONNECTED_INPUTS
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 27 | 2006-02-15 | Changelog, SVN-Rev.: 8973 |
Removed | 37 | 2008-01-14 | Changelog, SVN-Rev.: 15437 |
Fallback | -1 | The function can be can be used with restrictions till version 77. |
Integer getColour() throws IOException
Gets the colour of a recording.
Integer getContrast() throws IOException
Gets the contrast of a recording.
Integer getBrightness() throws IOException
Gets the brightness of a recording.
Integer getHue() throws IOException
Gets the hue of a recording.
Integer changeColour(boolean up) throws IOException
Integer changeColour(EPictureAdjustmentType adjustmentType, boolean up) throws IOException
adjustmentType
- the adjustment type (Since 30)up
- the direction, true
means increase.
IOException
- on communication errorsQUERY_RECORDER_CHANGE_COLOUR
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 30 | 2006-05-22 | Changelog, MythTV-Release: 0.20, SVN-Rev.: 9968 |
Removed | -1 |
Integer changeContrast(boolean up) throws IOException
Integer changeContrast(EPictureAdjustmentType adjustmentType, boolean up) throws IOException
adjustmentType
- the adjustment type (Since 30)up
- the direction, true
means increase.
IOException
- on communication errorsQUERY_RECORDER_CHANGE_CONTRAST
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 30 | 2006-05-22 | Changelog, MythTV-Release: 0.20, SVN-Rev.: 9968 |
Removed | -1 |
Integer changeBrightness(boolean up) throws IOException
Integer changeBrightness(EPictureAdjustmentType adjustmentType, boolean up) throws IOException
adjustmentType
- the adjustment type (Since 30)up
- the direction, true
means increase.
IOException
- on communication errorsQUERY_RECORDER_CHANGE_BRIGHTNESS
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 30 | 2006-05-22 | Changelog, MythTV-Release: 0.20, SVN-Rev.: 9968 |
Removed | -1 |
Integer changeHue(boolean up) throws IOException
Integer changeHue(EPictureAdjustmentType adjustmentType, boolean up) throws IOException
adjustmentType
- the adjustment type (Since 30)up
- the direction, true
means increase.
IOException
- on communication errorsQUERY_RECORDER_CHANGE_HUE
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 30 | 2006-05-22 | Changelog, MythTV-Release: 0.20, SVN-Rev.: 9968 |
Removed | -1 |
long getMaxBitrate() throws IOException
int setSignalMonitoringRate(int rate, boolean notifyFrontend) throws IOException
pause()
the
recorder before calling this function.
rate
- Milliseconds between each signal check, 0 to disable, -1 to preserve old value.notifyFrontend
- If 1 SIGNAL messages are sent to the frontend, if 0 SIGNAL messages will not be sent, and if -1 the old value is preserved.
IOException
- on communication errorsQUERY_RECORDER_SET_SIGNAL_MONITORING_RATE
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 18 | 2005-07-19 | Changelog, SVN-Rev.: 6865 |
Removed | -1 |
boolean pause() throws IOException
boolean cancelNextRecording(Boolean cancel) throws IOException
This is used when the user is watching "Live TV" and does not want to allow the recorder to be taken for a pending recording.
cancel
- if the next recording should be canceled or continued (Since 23).
IOException
- on communication errorsQUERY_RECORDER_CANCEL_NEXT_RECORDING
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 23 | 2006-01-10 | Changelog, SVN-Rev.: 8553 |
Removed | -1 |
boolean setNextLiveTvDirectory(String path) throws IOException
long getKeyframePosition(long frameNumber) throws IOException
Map<Long,Long> fillPositionMap(long frameNumberStart, long frameNumberEnd) throws IOException
getKeyframePosition(long)
is used instead, if no more
than 1000 frames should be tested, otherwise this function call returns an empty list.
frameNumberStart
- the starting frame numberframeNumberEnd
- the ending frame number
IOException
- on communication errorsQUERY_RECORDER_FILL_POSITION_MAP
Version | Date | Additional Version Info | |
---|---|---|---|
Added | 00 | ||
Changed | 43 | 2008-12-22 | Changelog, SVN-Rev.: 19417 |
Removed | -1 |
Map<Long,Long> fillDurationMap(long start, long end) throws IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |