|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.MediaPlayerAPI
public class MediaPlayerAPI
Calls for playing back media in SageTV and for controlling that playback
| Method Summary | |
|---|---|
long |
ApplyRelativeSubtitleAdjustment(int SubCount)
Adjusts the timing for subtitle display by increasing/decreasing the delay so that the sub at the relative SubCount position would be currently displayed. |
boolean |
CanAdjustSubtitleTiming()
Returns true if the subtitles for the currently loaded file can have their timing adjusted. |
void |
ChannelDown()
Performs a logical channel down in the MediaPlayer. |
void |
ChannelSet(java.lang.String ChannelNumber)
Performs a logical channel set in the MediaPlayer. |
void |
ChannelUp()
Performs a logical channel up in the MediaPlayer. |
void |
CloseAndWaitUntilClosed()
Closes the file that is currently loaded by the MediaPlayer and waits for the MediaPlayer to completely free all of its resources before returning. |
void |
DirectPlaybackControl(int Code,
long Param1,
long Param2)
Submits an explicit playback control request to the MediaPlayer if it supports it. |
boolean |
DoesCurrentMediaFileHaveVideo()
Returns true if the MediaPlayer has a file loading or loaded that has video content in it |
void |
DVDAngleChange(int AngleNum)
Sets the 'Angle' for playback of the current DVD content. |
void |
DVDAudioChange(int AudioNum)
Sets the audio language that should be used in the current DVD content. |
void |
DVDChapterNext()
Informs the MediaPlayer to start playback of the next chapter in the current DVD content. |
void |
DVDChapterPrevious()
Informs the MediaPlayer to start playback of the previous chapter in the current DVD content. |
void |
DVDChapterSet(int ChapterNumber)
Informs the MediaPlayer to start playback of the specified chapter in the current DVD content. |
void |
DVDEnter()
Performs the 'Enter' operation when using a menu system in DVD content. |
void |
DVDMenu()
Performs the 'Menu' operation when playing back a DVD which should bring up the root menu of the DVD |
void |
DVDReturn()
Performs the 'Return' operation when playing back a DVD which should bring the user back to the last DVD menu they were at |
void |
DVDSubtitleChange(int SubtitleNum)
Sets the subtitle that should be displayed in the current DVD content. |
void |
DVDSubtitleToggle()
Toggles the state for subtitle display in the DVD content being played back. |
void |
DVDTitleMenu()
Performs the 'Menu' operation when playing back a DVD which should bring up the title menu of the DVD |
void |
DVDTitleNext()
Informs the MediaPlayer to start playback of the next title in the current DVD content. |
void |
DVDTitlePrevious()
Informs the MediaPlayer to start playback of the previous title in the current DVD content. |
long |
GetAvailableSeekingEnd()
Gets the latest time that the current media can be seeked to using the Seek() call. |
long |
GetAvailableSeekingStart()
Gets the earliest time that the current media can be seeked to using the Seek() call. |
java.lang.String |
GetBluRayTitleDescription(int TitleNum)
Returns a description of the specified title number if playing back a BluRay. |
sage.MediaFile |
GetCurrentMediaFile()
Returns the MediaFile object that is currently loaded (or loading) by the MediaPlayer |
java.lang.String |
GetCurrentMediaTitle()
Returns the title of the content that is currently loaded by the MediaPlayer. |
sage.Playlist |
GetCurrentPlaylist()
Returns the current Playlist that is being played back by the MediaPlayer. |
int |
GetCurrentPlaylistIndex()
Returns the 0-based index into the root Playlist that is currently being played back by the MediaPlayer. |
java.lang.String[] |
GetDVDAvailableLanguages()
Gets a list of all of the audio languages that are currently available in the current DVD content |
java.lang.String[] |
GetDVDAvailableSubpictures()
Gets a list of all of the subtitles that are currently available in the current DVD content |
int |
GetDVDCurrentAngle()
Gets the current angle number that is being played back for DVD content |
int |
GetDVDCurrentChapter()
Gets the current chapter number that is being played back for DVD content. |
int |
GetDVDCurrentDomain()
Gets the current 'domain' that the DVD playback is in. |
java.lang.String |
GetDVDCurrentLanguage()
Gets the current audio playback language that is being used for the current DVD content |
java.lang.String[] |
GetDVDCurrentSubpicture()
Gets the current subtitle that is being used for the current DVD content |
int |
GetDVDCurrentTitle()
Gets the current title number that is being played back for DVD content. |
int |
GetDVDNumberOfAngles()
Gets the total number of angles that are currently available to select from in the current DVD content |
int |
GetDVDNumberOfChapters()
Gets the total number of chapters in the current title in the current DVD content |
int |
GetDVDNumberOfTitles()
Gets the total number of titles in the current DVD content |
long |
GetMediaDuration()
Returns the duration of the currently loaded MediaFile in milliseconds. |
java.lang.String |
GetMediaPlayerClosedCaptionState()
Gets the current state that MediaPlayer close captioning is set to use. |
long |
GetMediaTime()
Gets the current playback time of the MediaPlayer. |
float |
GetPlaybackRate()
Returns the current playback rate as a floating point number. |
long |
GetRawMediaTime()
Gets the current playback time of the MediaPlayer. |
long |
GetSubtitleDelay()
Gets the delay in milliseconds that is applied to external subtitle files when they are used during playback (can be positive or negative) |
java.awt.image.BufferedImage |
GetVideoSnapshot()
Returns an image which is a frame grab of the currently rendered video frame. |
float |
GetVolume()
Returns the current volume level of the MediaPlayer. |
boolean |
HasMediaFile()
Returns true if the MediaPlayer currently has a file that is loading or loaded. |
boolean |
IsCorrectParentalLockCode(java.lang.String ParentalLockCode)
Returns true if the argument passed in matches the parental lock code in the system |
boolean |
IsCurrentMediaFileDVD()
Returns true if the MediaPlayer has a file loading or loaded, and that file is a DVD |
boolean |
IsCurrentMediaFileMusic()
Returns true if the MediaPlayer has a file loading or loaded, and that file is a music file |
boolean |
IsCurrentMediaFileRecording()
Returns true if the MediaPlayer has a file loading or loaded, and that file is currently being recorded |
boolean |
IsMediaPlayerFullyLoaded()
Returns true if the MediaPlayer is fully loaded. |
boolean |
IsMediaPlayerLoading()
Returns true if the MediaPlayer is loading. |
boolean |
IsMediaPlayerSignalLost()
Returns true if the source the MediaPlayer is trying to playback from indicates a signal loss. |
boolean |
IsMuted()
Returns true if the MediaPlayer is currently in a muted state. |
boolean |
IsPlaying()
Returns true if the MediaPlayer is currently playing back content (i.e. |
boolean |
IsShowingDVDMenu()
Returns true if the MediaPlayer currently has DVD content loaded and that content is showing a DVD menu that can have user interaction |
java.lang.Object |
LockTuner(java.lang.String CaptureDeviceInput)
Instructs SageTV to take control of the specified CaptureDeviceInput. |
void |
Pause()
Pauses playback in the MediaPlayer. |
void |
Play()
Resumes playback in the MediaPlayer. |
void |
PlayFaster()
Sets the playback rate of the MediaPlayer to be twice the current playback rate. |
void |
PlayPause()
Pauses playback of the MediaPlayer if it is currently playing or resumes playback of the MediaPlayer if it is currently paused. |
void |
PlaySlower()
Sets the playback rate of the MediaPlayer to be half the current playback rate. |
void |
ReloadCurrentFile()
Reloads the current file that is loaded by the MediaPlayer. |
void |
Seek(long Time)
Performs a time seek in the MediaPlayer to the specified time. |
void |
SetMediaPlayerClosedCaptionState(java.lang.String CCType)
Sets the current state that MediaPlayer close captioning should use. |
void |
SetMute(boolean Muted)
Sets the mute state for the MediaPlayer. |
void |
SetPlaybackRate(float PlaybackRate)
Sets the playback rate of the MediaPlayer to the specified value. |
void |
SetSubtitleDelay(long DelayMsec)
Sets the delay in milliseconds that is applied to external subtitle files when they are used during playback (can be positive or negative) |
void |
SetVideoAlwaysOnTop(boolean OnTop)
Sets the video portion of SageTV to always be on top of other windows in the desktop (Windows only). |
void |
SetVolume(float Amount)
Explicitly sets the volume in the MediaPlayer to be the specified amount. |
void |
SkipBackwards()
Performs a time seek backwards in the MediaPlayer. |
void |
SkipBackwards2()
Performs a time seek backwards in the MediaPlayer. |
void |
SkipForward()
Performs a time seek forward in the MediaPlayer. |
void |
SkipForward2()
Performs a time seek forward in the MediaPlayer. |
int |
StartPlaylist(sage.Playlist Playlist)
Starts playback of the specified Playlist. |
int |
StartPlaylistAt(sage.Playlist Playlist,
int StartIndex)
Starts playback of the specified Playlist. |
void |
VolumeAdjust(float Amount)
Adjusts the volume in the MediaPlayer be the specified amount. |
void |
VolumeDown()
Decreases the volume in the MediaPlayer. |
void |
VolumeUp()
Increases the volume in the MediaPlayer. |
java.lang.Object |
Watch(java.lang.Object Content)
Instructs SageTV to playback the specified media content. |
java.lang.Object |
WatchLive(java.lang.String CaptureDeviceInput,
long PauseBufferSize)
Instructs SageTV to begin playback of content streamed from the specified CaptureDeviceInput. |
java.lang.Object |
WatchLive(java.lang.String CaptureDeviceInput,
long PauseBufferSize,
java.lang.String PhysicalChannel)
Instructs SageTV to begin playback of content streamed from the specified CaptureDeviceInput. |
java.lang.Object |
WatchLocalFile(java.io.File file)
Instructs SageTV to playback the specified file path that's local to this client |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean IsMediaPlayerFullyLoaded()
public boolean IsMediaPlayerLoading()
public void PlayFaster()
public void SkipForward()
public void SkipForward2()
public void Seek(long Time)
Time - the time to seek the MediaPlayer to in millisecondspublic void Pause()
public void Play()
public void PlaySlower()
public void PlayPause()
public void SkipBackwards()
public void SkipBackwards2()
public float GetPlaybackRate()
public void SetPlaybackRate(float PlaybackRate)
PlaybackRate - the playback rate to set the MediaPlayer topublic void VolumeUp()
public void VolumeDown()
public float GetVolume()
public void ChannelUp()
public void ChannelDown()
public void ChannelSet(java.lang.String ChannelNumber)
ChannelNumber - the new channel/track/chapter to playbackpublic void VolumeAdjust(float Amount)
Amount - the amount to adjust the volume bypublic void SetVolume(float Amount)
Amount - the level to set the volume topublic java.lang.Object Watch(java.lang.Object Content)
Content - the Airing, MediaFile or file path to being playback of
public java.lang.Object WatchLive(java.lang.String CaptureDeviceInput,
long PauseBufferSize)
CaptureDeviceInput - the capture input to playback content directly fromPauseBufferSize - the size in bytes of the buffer SageTV should use to buffer the content for playback, this will
also allow pausing of this stream upto the size of the PauseBuffer; use 0 to request no buffering
(although SageTV may still decide to use buffering if it deems it necessary)
public java.lang.Object WatchLive(java.lang.String CaptureDeviceInput,
long PauseBufferSize,
java.lang.String PhysicalChannel)
CaptureDeviceInput - the capture input to playback content directly fromPauseBufferSize - the size in bytes of the buffer SageTV should use to buffer the content for playback, this will
also allow pausing of this stream upto the size of the PauseBuffer; use 0 to request no buffering
(although SageTV may still decide to use buffering if it deems it necessary)PhysicalChannel - the physical channel number that should be tuned to before starting viewing
public java.lang.Object LockTuner(java.lang.String CaptureDeviceInput)
CaptureDeviceInput - the capture input to control
public java.lang.Object WatchLocalFile(java.io.File file)
file - path to playback
public int StartPlaylist(sage.Playlist Playlist)
Playlist - the Playlist to being playback of
public int StartPlaylistAt(sage.Playlist Playlist,
int StartIndex)
Playlist - the Playlist to being playback ofStartIndex - the index in the playlist to start playing at (1-based index)
public void CloseAndWaitUntilClosed()
public boolean IsMuted()
public void SetMute(boolean Muted)
Muted - true if the MediaPlayer should be muted, false otherwisepublic java.lang.String GetCurrentMediaTitle()
public long GetMediaTime()
public long GetRawMediaTime()
public long GetMediaDuration()
public sage.MediaFile GetCurrentMediaFile()
public boolean HasMediaFile()
public boolean DoesCurrentMediaFileHaveVideo()
public boolean IsCurrentMediaFileMusic()
public boolean IsCurrentMediaFileDVD()
public boolean IsCurrentMediaFileRecording()
public boolean IsPlaying()
public boolean IsShowingDVDMenu()
public sage.Playlist GetCurrentPlaylist()
StartPlaylist()
public int GetCurrentPlaylistIndex()
public long GetAvailableSeekingStart()
Seek() call. This
will be in absolute time.
public long GetAvailableSeekingEnd()
Seek() call. This
will be in absolute time.
public boolean IsCorrectParentalLockCode(java.lang.String ParentalLockCode)
ParentalLockCode - the code to test
public void SetVideoAlwaysOnTop(boolean OnTop)
OnTop - true if the video window of SageTV should be on top of all other windows in the system, false otherwisepublic void DVDChapterNext()
public void DVDChapterPrevious()
public void DVDChapterSet(int ChapterNumber)
ChapterNumber - the chapter number to start playback of in the current DVDpublic void DVDEnter()
public void DVDMenu()
public void DVDTitleMenu()
public void DVDReturn()
public void DVDTitleNext()
public void DVDTitlePrevious()
public void DVDSubtitleToggle()
public void DVDSubtitleChange(int SubtitleNum)
GetDVDAvailableSubpictures().
If no arguments are given to this function then the currently displayed subtitle will be changed to the next one
SubtitleNum - the 0-based index into the list of subtitles that should be displayedpublic void DVDAudioChange(int AudioNum)
GetDVDAvailableLanguages().
If no arguments are given to this function then the current audio language will be changed to the next available language
AudioNum - the 0-based index into the list of audio languages that should be usedpublic void DVDAngleChange(int AngleNum)
GetDVDNumberOfAngles().
If no arguments are given to this function then the current angle will be changed to the next available angle
AngleNum - the 1-based index that indicates which angle should be used for playbackpublic void ReloadCurrentFile()
public void DirectPlaybackControl(int Code,
long Param1,
long Param2)
Code - this is the value of the control command to be sent to the player, must be one of the following:
MENU = 201; Param1 should be 1 for title, 2 for root
TITLE_SET = 202; Param1 should be the title number
CHAPTER_SET = 205; Param1 should be the chapter number
CHAPTER_NEXT = 206;
CHAPTER_PREV = 207;
ACTIVATE_CURRENT = 208;
RETURN = 209;
BUTTON_NAV = 210; Param1 should be 1(up), 2(right), 3(down) or 4(left)
MOUSE_HOVER = 211; Param1 should be x and Param2 should be y
MOUSE_CLICK = 212; Param1 should be x and Param2 should be y
ANGLE_CHANGE = 213; Param1 should be the angle number (1-based)
SUBTITLE_CHANGE = 214; Param1 should be the subtitle number (0-based)
SUBTITLE_TOGGLE = 215;
AUDIO_CHANGE = 216; Param1 should be the audio number (0-based)Param1 - the first parameter for the control command (see above)Param2 - the second parameter for the control command (see above)public int GetDVDCurrentTitle()
public java.lang.String GetBluRayTitleDescription(int TitleNum)
TitleNum - the title number (1-based) to retrieve a description of
public int GetDVDNumberOfTitles()
public int GetDVDCurrentChapter()
public int GetDVDNumberOfChapters()
public int GetDVDCurrentDomain()
public int GetDVDCurrentAngle()
public int GetDVDNumberOfAngles()
public java.lang.String GetDVDCurrentLanguage()
public java.lang.String[] GetDVDAvailableLanguages()
public java.lang.String[] GetDVDCurrentSubpicture()
public java.lang.String[] GetDVDAvailableSubpictures()
public java.lang.String GetMediaPlayerClosedCaptionState()
public void SetMediaPlayerClosedCaptionState(java.lang.String CCType)
CCType - the new state that MediaPlayer close captioning should usepublic boolean IsMediaPlayerSignalLost()
public long GetSubtitleDelay()
public void SetSubtitleDelay(long DelayMsec)
DelayMsec - the delay in milliseconds that is applied to external subtitle files when they are used during playbackpublic boolean CanAdjustSubtitleTiming()
public long ApplyRelativeSubtitleAdjustment(int SubCount)
SubCount - the relative position from the current sub of the sub that should be displayed now
public java.awt.image.BufferedImage GetVideoSnapshot()
|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||