Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QMediaStreamsControl Class Reference

The QMediaStreamsControl class provides a media stream selection control. More...

    #include <QMediaStreamsControl>

This class is under development and is subject to change.

Inherits QMediaControl.


Public Types

enum StreamType { AudioStream, VideoStream, SubPictureStream, UnknownStream, DataStream }

Public Functions

virtual ~QMediaStreamsControl ()
virtual bool isActive ( int stream ) = 0
virtual QVariant metaData ( int stream, QtMedia::MetaData key ) = 0
virtual void setActive ( int stream, bool state ) = 0
virtual int streamCount () = 0
virtual StreamType streamType ( int stream ) = 0
  • 29 public functions inherited from QObject

Signals

void activeStreamsChanged ()
void streamsChanged ()

Protected Functions

QMediaStreamsControl ( QObject * parent = 0 )
  • 7 protected functions inherited from QObject

Macros

QMediaStreamsControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public type inherited from QObject
  • 4 static public members inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QMediaStreamsControl class provides a media stream selection control.

The QMediaStreamsControl class provides descriptions of the available media streams and allows individual streams to be activated and deactivated.

The interface name of QMediaStreamsControl is com.nokia.Qt.MediaStreamsControl as defined in QMediaStreamsControl_iid.

See also QMediaService::control().


Member Type Documentation

enum QMediaStreamsControl::StreamType

Media stream type.

ConstantValueDescription
QMediaStreamsControl::AudioStream2Audio stream.
QMediaStreamsControl::VideoStream1Video stream.
QMediaStreamsControl::SubPictureStream3Subpicture or teletext stream.
QMediaStreamsControl::UnknownStream0The stream type is unknown.
QMediaStreamsControl::DataStream4 


Member Function Documentation

QMediaStreamsControl::QMediaStreamsControl ( QObject * parent = 0 )   [protected]

Constructs a new media streams control with the given parent.

QMediaStreamsControl::~QMediaStreamsControl ()   [virtual]

Destroys a media streams control.

void QMediaStreamsControl::activeStreamsChanged ()   [signal]

The signal is emited when the active streams list is changed.

bool QMediaStreamsControl::isActive ( int stream )   [pure virtual]

Returns true if the media stream is active.

QVariant QMediaStreamsControl::metaData ( int stream, QtMedia::MetaData key )   [pure virtual]

Returns the meta-data value of key for a given stream.

Useful metadata keya are QtMedia::Title, QtMedia::Description and QtMedia::Language.

void QMediaStreamsControl::setActive ( int stream, bool state )   [pure virtual]

Sets the active state of a media stream.

Setting the active state of a media stream to true will activate it. If any other stream of the same type was previously active it will be deactivated. Setting the active state fo a media stream to false will deactivate it.

See also isActive().

int QMediaStreamsControl::streamCount ()   [pure virtual]

Returns the number of media streams.

StreamType QMediaStreamsControl::streamType ( int stream )   [pure virtual]

Return the type of a media stream.

void QMediaStreamsControl::streamsChanged ()   [signal]

The signal is emited when the available streams list is changed.


Macro Documentation

QMediaStreamsControl_iid

com.nokia.Qt.MediaStreamsControl

Defines the interface name of the QMediaStreamsControl class.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.0-tp
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web