|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.phonon.MediaController
public class MediaController
The MediaController class controls optional features of a media file/device. Some media sources have content that the MediaObject
does not provide control over, for instance, chapters in a DVD file. The functionality the media controller offers is dependent on the type of media source that is played back. Commonly, the media controller allows you to:
Feature
enum explains these terms in more detail, and their context in playback of CD and DVD. The media controller keeps a MediaObject
, of which media source
is played back. You can still call the media object's functions, e.g., stop()
; this is all handled correctly by the media controller. You have the option of letting the media controller play all titles of a source in sequence by setting the autoplay titles
option.
To start a playback using a media object, you call play()
on the media object. To play a specific title, use setCurrentTitle()
and then call play()
.
Warning: The Phonon::MediaController class is not yet supported by Qt backends.
Nested Class Summary | |
---|---|
static class |
MediaController.Feature
The values of this enum are interpreted differently depending on the type of media source, e.g., DVD or CD. |
static class |
MediaController.Features
|
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary | |
---|---|
QSignalEmitter.Signal1 |
angleChanged
This signal takes 1 generic argument(s). |
QSignalEmitter.Signal1 |
availableAnglesChanged
This signal takes 1 generic argument(s). |
QSignalEmitter.Signal1 |
availableChaptersChanged
This signal takes 1 generic argument(s). |
QSignalEmitter.Signal1 |
availableTitlesChanged
This signal takes 1 generic argument(s). |
QSignalEmitter.Signal1 |
chapterChanged
This signal takes 1 generic argument(s). |
QSignalEmitter.Signal1 |
titleChanged
This signal takes 1 generic argument(s). |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
MediaController(MediaObject parent)
Constructs a new MediaController with the media object (parent) to be used by the media controller. |
Method Summary | |
---|---|
boolean |
autoplayTitles()
Returns true if titles will automatically be played when the media is played; otherwise returns false. |
int |
availableAngles()
Returns the available angles that is available for the current media source. |
int |
availableChapters()
Returns the number of chapters the current media source contains. |
int |
availableTitles()
Returns the number of titles that the current media source contains. |
int |
currentAngle()
Returns the angle that is currently used. |
int |
currentChapter()
Returns the chapter that is currently being played back. |
int |
currentTitle()
Returns the title that is currently played back. |
void |
nextTitle()
Skips to the next title. |
void |
previousTitle()
Skips to the previous title. |
void |
setAutoplayTitles(boolean arg__1)
Sets the titles to play automatically when the media is played if enable is true; otherwise disables this option. |
void |
setCurrentAngle(int angleNumber)
Sets the current angle to the given angleNumber if the media file or device supports navigation by angle number. |
void |
setCurrentChapter(int chapterNumber)
Sets the current chapter to the given chapterNumber if the media file or device supports navigation by chapter number. |
void |
setCurrentTitle(int titleNumber)
Skips to the given title titleNumber. |
MediaController.Features |
supportedFeatures()
|
Methods inherited from class com.trolltech.qt.core.QObject |
---|
childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, startTimer, timerEvent, toString, userProperty |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Field Detail |
---|
public final QSignalEmitter.Signal1 angleChanged
This signal takes 1 generic argument(s). We list their type and the name they go by in the description of this signal. <java.lang.Integer(named: angleNumber)>:
This signal is emitted whenever the current angle changes. The new angle number is given by angleNumber.
Feature
.
public final QSignalEmitter.Signal1 availableAnglesChanged
This signal takes 1 generic argument(s). We list their type and the name they go by in the description of this signal. <java.lang.Integer(named: availableAngles)>:
This signal is emitted whenever the number of available angles changes. The new number of available angles is given by availableAngles.
Feature
.
public final QSignalEmitter.Signal1 availableChaptersChanged
This signal takes 1 generic argument(s). We list their type and the name they go by in the description of this signal. <java.lang.Integer(named: availableChapters)>:
This signal is emitted whenever the number of available chapters changes. The new number of available chapters is given by availableChapters.
Feature
.
public final QSignalEmitter.Signal1 availableTitlesChanged
This signal takes 1 generic argument(s). We list their type and the name they go by in the description of this signal. <java.lang.Integer(named: availableTitles)>:
This signal is emitted whenever the number of available titles changes. The new number of available titles is given by availableTitles.
Feature
.
public final QSignalEmitter.Signal1 chapterChanged
This signal takes 1 generic argument(s). We list their type and the name they go by in the description of this signal. <java.lang.Integer(named: chapterNumber)>:
This signal is emitted whenever the current chapter changes. The new chapter number is given by chapterNumber.
Feature
.
public final QSignalEmitter.Signal1 titleChanged
This signal takes 1 generic argument(s). We list their type and the name they go by in the description of this signal. <java.lang.Integer(named: titleNumber)>:
This signal is emitted whenever the current title changes. The new title number is given by titleNumber.
Feature
.
Constructor Detail |
---|
public MediaController(MediaObject parent)
MediaObject
, and Feature
.
Method Detail |
---|
public final boolean autoplayTitles()
The media controller will play the titles of the media source in sequence when the media object's play()
function is called. If the autoplay option is disabled, the media object will play the MediaController::currentTitle()
{current title} and then finish the playback.
setAutoplayTitles()
, and currentTitle()
.
public final int availableAngles()
Feature
.
public final int availableChapters()
Feature
.
public final int availableTitles()
Feature
.
public final int currentAngle()
setCurrentAngle()
, and Feature
.
public final int currentChapter()
setCurrentChapter()
, and Feature
.
public final int currentTitle()
The current title is 0 (the first) by default.
setCurrentTitle()
, and Feature
.
public final void nextTitle()
If it was playing before the title change it will start playback on the next title if autoplayTitles is enabled.
Feature
.
public final void previousTitle()
If it was playing before the title change it will start playback on the previous title if autoplayTitles is enabled.
Feature
.
public final void setAutoplayTitles(boolean arg__1)
The media controller will play the titles of the media source in sequence when the media object's play()
function is called. If the autoplay option is disabled, the media object will play the MediaController::currentTitle()
{current title} and then finish the playback.
autoplayTitles()
, and currentTitle()
.
public final void setCurrentAngle(int angleNumber)
currentAngle()
, and Feature
.
public final void setCurrentChapter(int chapterNumber)
currentChapter()
, and Feature
.
public final void setCurrentTitle(int titleNumber)
If it was playing before the title change it will start playback on the new title if autoplayTitles is enabled.
currentTitle()
, and Feature
.
public final MediaController.Features supportedFeatures()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |