# class MediaController

###

Module | phonon
Namespace | Phonon
Class | MediaController
Inherits | QObject

\class MediaController mediacontroller.h Phonon/MediaController Controls optional features of a media file/device like title, chapter, angle.

Author Matthias Kretz <kretz@kde.org>

### enums

- Feature { Angles, Chapters, Titles }

enum details

### methods

- MediaController (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | Phonon.MediaObject |

- angleChanged (angleNumber)

  returns Nothing
  SIGNAL ("angleChanged (int)")

  Argument | Type | Default
  --- | --- | ---
  angleNumber | int |

- autoplayTitles ( )

  returns bool

- availableAngles ( )

  returns int

- availableAnglesChanged (availableAngles)

  returns Nothing
  SIGNAL ("availableAnglesChanged (int)")

  Argument | Type | Default
  --- | --- | ---
  availableAngles | int |

- availableAudioChannels ( )

  returns QList<Phonon::AudioChannelDescription>

  Returns the audio streams that can be selected by the user. The strings can directly be used in the user interface.

  See also selectedAudioChannel

  See also setCurrentAudioChannel

- availableAudioChannelsChanged ( )

  returns Nothing
  SIGNAL ("availableAudioChannelsChanged ()")

- availableChapters ( )

  returns int

- availableChaptersChanged (availableChapters)

  returns Nothing
  SIGNAL ("availableChaptersChanged (int)")

  Argument | Type | Default
  --- | --- | ---
  availableChapters | int |

- availableSubtitles ( )

  returns QList<Phonon::SubtitleDescription>

  Returns the subtitle streams that can be selected by the user. The strings can directly be used in the user interface.

  See also selectedSubtitle

  See also setCurrentSubtitle

- availableSubtitlesChanged ( )

  returns Nothing
  SIGNAL ("availableSubtitlesChanged ()")

- availableTitles ( )

  returns int

- availableTitlesChanged (availableTitles)

  returns Nothing
  SIGNAL ("availableTitlesChanged (int)")

  Argument | Type | Default
  --- | --- | ---
  availableTitles | int |

- chapterChanged (chapterNumber)

  returns Nothing
  SIGNAL ("chapterChanged (int)")

  Argument | Type | Default
  --- | --- | ---
  chapterNumber | int |

- currentAngle ( )

  returns int

- currentAudioChannel ( )

  returns Phonon.AudioChannelDescription

  Returns the selected audio stream.

  See also availableAudioChannels

  See also setCurrentAudioChannel

- currentChapter ( )

  returns int

- currentSubtitle ( )

  returns Phonon.SubtitleDescription

  Returns the selected subtitle stream.

  See also availableSubtitles

  See also setCurrentSubtitle

- currentTitle ( )

  returns int

- nextTitle ( )

  returns Nothing

  Skips to the next title.

  If it was playing before the title change it will start playback on the next title if autoplayTitles is enabled.

- previousTitle ( )

  returns Nothing

  Skips to the previous title.

  If it was playing before the title change it will start playback on the previous title if autoplayTitles is enabled.

- setAutoplayTitles (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setCurrentAngle (angleNumber)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  angleNumber | int |

- setCurrentAudioChannel (stream)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  stream | Phonon.AudioChannelDescription |

  Selects an audio stream from the media.

  Some media formats allow multiple audio streams to be stored in the same file. Normally only one should be played back.

  stream - Description of an audio stream

  See also availableAudioChannels()

  See also currentAudioChannel()

- setCurrentChapter (chapterNumber)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  chapterNumber | int |

- setCurrentSubtitle (stream)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  stream | Phonon.SubtitleDescription |

  Selects a subtitle stream from the media.

  Some media formats allow multiple subtitle streams to be stored in the same file. Normally only one should be displayed.

  stream - description of a subtitle stream

  See also availableSubtitles()

  See also currentSubtitle()

- setCurrentTitle (titleNumber)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  titleNumber | int |

  Skips to the given title titleNumber.

  If it was playing before the title change it will start playback on the new title if autoplayTitles is enabled.

- supportedFeatures ( )

  returns Phonon::MediaController.Features

- titleChanged (titleNumber)

  returns Nothing
  SIGNAL ("titleChanged (int)")

  Argument | Type | Default
  --- | --- | ---
  titleNumber | int |

### enums - detail

- Feature { Angles, Chapters, Titles }

  | Angles | - 1 | - |
  | Chapters | - 2 | - |
  | Titles | - 4 | - |