|
Qt Components Hildon
0.20
QML components for Maemo5 with Hildon styling.
|
Provides audio playback features. More...
Public Slots | |
| void | pause () |
| Pauses audio playback. | |
| void | play () |
| Starts or resumes audio playback. | |
| void | stop () |
| Stops audio playback. | |
Signals | |
| void | error (string errorString) |
| This signal is emitted when an error occurs. | |
| void | resumed () |
This signal is emitted when audio playback is resumed, i.e the previous status will be Paused. | |
| void | started () |
This signal is emitted when audio playback is started, i.e the previous status will be Audio.Stopped. | |
| void | stopped () |
| This signal is emitted when audio playback is stopped. | |
Properties | |
| bool | autoLoad |
| Whether the source is set immediately. | |
| real | bufferProgress |
| The current progress of audio buffering. | |
| int | duration |
| The duration of the audio stream, in seconds. | |
| string | errorString |
| A description of the error that last occurred. | |
| variant | metaData |
| The metadata associated with the audio stream. | |
| bool | muted |
| Whether the audio output is muted. | |
| bool | paused |
| Whether the audio playback is paused. | |
| bool | playing |
| Whether the audio is playing. | |
| int | position |
| The current position in the audio stream, in seconds. | |
| bool | seekable |
| Whether seeking in the audio stream is enabled. | |
| string | source |
| The source of the audio stream. | |
| enumeration | status |
| The current status of the audio stream. | |
| int | tickInterval |
| The frequency of position updates, in milliseconds. | |
| int | volume |
| The current audio output volume. | |
Provides audio playback features.
The Audio component is suitable for playback of audio streams, such as music files and internet radio.
|
signal |
This signal is emitted when an error occurs.
errorString provides a description of the error.
|
slot |
Pauses audio playback.
|
slot |
Stops audio playback.
|
readwrite |
Whether the source is set immediately.
The default value is true.
|
read |
The metadata associated with the audio stream.
Available properties are:
| Name |
|---|
| metaData.albumArtist |
| metaData.albumTitle |
| metaData.artist |
| metaData.audioBitRate |
| metaData.audioCodec |
| metaData.comment |
| metaData.composer |
| metaData.copyright |
| metaData.coverArtUrl |
| metaData.date |
| metaData.description |
| metaData.genre |
| metaData.keywords |
| metaData.lastPlayed |
| metaData.lyrics |
| metaData.mimeType |
| metaData.playCount |
| metaData.size |
| metaData.title |
| metaData.trackNumber |
| metaData.year |
|
readwrite |
|
readwrite |
Whether the audio playback is paused.
This signal is emitted when audio playback is paused.
The default value is false.
|
readwrite |
|
read |
Whether seeking in the audio stream is enabled.
|
read |
The current status of the audio stream.
Possible values are:
| Value | Description |
|---|---|
| Audio.Stopped | The audio stream is stopped (default). |
| Audio.Loading | The audio stream is being loaded. |
| Audio.Playing | The audio stream is being played. |
| Audio.Paused | The audio stream is paused. |
| Audio.EndOfMedia | The end of the audio stream has been reached. |
| Audio.Error | An error occured when playing the audio stream. |
|
readwrite |
The frequency of position updates, in milliseconds.
Setting this property to 0 will suspend updates.
The default value is 1000.
|
readwrite |
The current audio output volume.
The available range is 0-100.
1.8.1.2