QML Audio ElementThe Audio element allows you to add audio playback to a scene. More... Properties
SignalsMethodsDetailed DescriptionThis element is part of the QtMultimediaKit 1.1 module. import Qt 4.7 import QtMultimediaKit 1.1 Text { text: "Click Me!"; font.pointSize: 24; width: 150; height: 50; Audio { id: playMusic source: "music.wav" } MouseArea { id: playArea anchors.fill: parent onPressed: { playMusic.play() } } } See also Video. Property DocumentationThis property indicates if loading of media should begin immediately. Defaults to true, if false media will not be loaded until playback is started. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds how much of the data buffer is currently filled, from 0.0 (empty) to 1.0 (full). This documentation was introduced in Qt Mobility Mobility 1.0. This property holds the duration of the media in milliseconds. If the media doesn't have a fixed duration (a live stream for example) this will be 0. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds the error state of the audio. It can be one of:
This documentation was introduced in Qt Mobility Mobility 1.0. This property holds a string describing the current error condition in more detail. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds the name of the principal artist of the album the media belongs to. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::AlbumArtist. This property holds the title of the album the media belongs to. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::AlbumTitle. This property holds the bit rate of the media's audio stream ni bits per second. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::AudioBitRate. This property holds the encoding of the media audio stream. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::AudioCodec. This property holds the author of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Author. This property holds the average volume level of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::AverageLevel. This property holds the category of the media This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Category. This property holds the number of channels in the media's audio stream. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::ChannelCount. This property holds the chapter number of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::ChapterNumber. This property holds a user comment about the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Comment. This property holds the composer of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Composer. This property holds the conductor of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Conductor. This property holds the names of artists contributing to the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::ContributingArtist. This property holds the media's copyright notice. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Copyright. This property holds the URL of a large cover art image. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::CoverArtUrlLarge. This property holds the URL of a small cover art image. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::CoverArtUrlSmall. This property holds the date of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Date. This property holds a description of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Description. This property holds the director of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Director. This property holds the genre of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Genre. This property holds a list of keywords describing the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Keywords. This property holds the language of the media, as an ISO 639-2 code. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Language. This property holds the lead performer in the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::LeadPerformer. This property holds the lyrics to the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Lyrics. This property holds the type of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::MediaType. This property holds the mood of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Mood. This property holds the parental rating of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::ParentalRating. This property holds the peak volume of media's audio stream. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::PeakValue. This property holds the pixel aspect ratio of an image or video. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::PixelAspectRatio. This property holds the URL of a poster image. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::PosterUrl. This property holds the publisher of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Publisher. This property holds the name of the rating organisation responsible for the parental rating of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::RatingOrganisation. This property holds the dimension of an image or video. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Resolution. This property holds the sample rate of the media's audio stream in hertz. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::SampleRate. This property property holds the size of the media in bytes. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Size. This property holds the sub-title of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::SubTitle. This property holds the tile of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Title. This property holds the number of track on the album containing the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::TrackNumber. This property holds the track number of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::TrackNumber. This property holds a user rating of the media in the range of 0 to 100. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::UserRating. This property holds the bit rate of the media's video stream in bits per second. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::VideoBitRate. This property holds the encoding of the media's video stream. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::VideoCodec. This property holds the frame rate of the media's video stream. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::VideoFrameRate. This property holds the writer of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Writer. This property holds the year of release of the media. This documentation was introduced in Qt Mobility Mobility 1.1. See also QtMultimediaKit::Year. This property holds whether the audio output is muted. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds whether the media is paused. Defaults to false, and can be set to true to pause playback. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds the rate at which audio is played at as a multiple of the normal rate. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds whether the media is playing. Defaults to false, and can be set to true to start playback. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds the current playback position in milliseconds. If the seekable property is true, this property can be set to seek to a new position. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds whether position of the audio can be changed. If true; setting a position value will cause playback to seek to the new position. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds the source URL of the media. This documentation was introduced in Qt Mobility Mobility 1.0. This property holds the status of media loading. It can be one of:
This documentation was introduced in Qt Mobility Mobility 1.0. This property holds the volume of the audio output, from 0.0 (silent) to 1.0 (maximum volume). This documentation was introduced in Qt Mobility Mobility 1.0. Signal DocumentationThis handler is called when an error has occurred. The errorString parameter may contain more detailed information about the error. This documentation was introduced in Qt Mobility Mobility 1.0. This handler is called when playback is paused. This documentation was introduced in Qt Mobility Mobility 1.0. This handler is called when playback is resumed from the paused state. This documentation was introduced in Qt Mobility Mobility 1.0. This handler is called when playback is started. This documentation was introduced in Qt Mobility Mobility 1.0. This handler is called when playback is stopped. This documentation was introduced in Qt Mobility Mobility 1.0. Method Documentation |
Publicité
Best OfActualités les plus luesSemaine
Mois
Année
![]()
![]() Le Qt Developer Network au hasard![]() Installation de PySide : binaires et compilationLe Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.
CommunautéRessources
Liens utilesContact
Qt dans le magazine |
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.2 | |
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 ! |
Copyright © 2000-2012 - www.developpez.com