Home · All Classes · All Functions ·

QML Video Element Reference

The Video element allows you to add videos to a scene. More...

Properties

Signals

Methods

Detailed Description

    Video { source: "video/movie.mpg" }

The video item supports untransformed, stretched, and uniformly scaled video presentation. For a description of stretched uniformly scaled presentation, see the fillMode property description.

The video item is only visible when the hasVideo property is true and the video is playing.

See also Audio.


Property Documentation

albumArtist : variant

This property holds the name of the principal artist of the album the media belongs to.

See also QtMedia::AlbumArtist.


albumTitle : variant

This property holds the title of the album the media belongs to.

See also QtMedia::AlbumTitle.


audioBitRate : variant

This property holds the bit rate of the media's audio stream ni bits per second.

See also QtMedia::AudioBitRate.


audioCodec : variant

This property holds the encoding of the media audio stream.

See also QtMedia::AudioCodec.


author : variant

This property holds the author of the media.

See also QtMedia::Author.


averageLevel : variant

This property holds the average volume level of the media.

See also QtMedia::AverageLevel.


bufferProgress : qreal

This property holds how much of the data buffer is currently filled, from 0.0 (empty) to 1.0 (full).


category : variant

This property holds the category of the media

See also QtMedia::Category.


channelCount : variant

This property holds the number of channels in the media's audio stream.

See also QtMedia::ChannelCount.


chapterNumber : variant

This property holds the chapter number of the media.

See also QtMedia::ChapterNumber.


comment : variant

This property holds a user comment about the media.

See also QtMedia::Comment.


composer : variant

This property holds the composer of the media.

See also QtMedia::Composer.


conductor : variant

This property holds the conductor of the media.

See also QtMedia::Conductor.


contributingArtist : variant

This property holds the names of artists contributing to the media.

See also QtMedia::ContributingArtist.


copyright : variant

This property holds the media's copyright notice.

See also QtMedia::Copyright.


coverArtUrlLarge : variant

This property holds the URL of a large cover art image.

See also QtMedia::CoverArtUrlLarge.


coverArtUrlSmall : variant

This property holds the URL of a small cover art image.

See also QtMedia::CoverArtUrlSmall.


date : variant

This property holds the date of the media.

See also QtMedia::Date.


description : variant

This property holds a description of the media.

See also QtMedia::Description.


director : variant

This property holds the director of the media.

See also QtMedia::Director.


read-onlyduration : int

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.


error : enum

This property holds the error state of the video. It can be one of:


errorString : string

This property holds a string describing the current error condition in more detail.


fillMode : enum

Set this property to define how the video is scaled to fit the target area.

The default fill mode is PreserveAspectFit.


genre : variant

This property holds the genre of the media.

See also QtMedia::Genre.


read-onlyhasAudio : bool

This property holds whether the media contains audio.


hasVideo : bool

This property holds whether the media contains video.


keywords : variant

This property holds a list of keywords describing the media.

See also QtMedia::Keywords.


language : variant

This property holds the language of the media, as an ISO 639-2 code.

See also QtMedia::Language.


leadPerformer : variant

This property holds the lead performer in the media.

See also QtMedia::LeadPerformer.


lyrics : variant

This property holds the lyrics to the media.

See also QtMedia::Lyrics.


mediaType : variant

This property holds the type of the media.

See also QtMedia::MediaType.


mood : variant

This property holds the mood of the media.

See also QtMedia::Mood.


muted : bool

This property holds whether the audio output is muted.


parentalRating : variant

This property holds the parental rating of the media.

See also QtMedia::ParentalRating.


paused : bool

This property holds whether the media is paused.

Defaults to false, and can be set to true to pause playback.


peakValue : variant

This property holds the peak volume of media's audio stream.

See also QtMedia::PeakValue.


pixelAspectRatio : variant

This property holds the pixel aspect ratio of an image or video.

See also QtMedia::PixelAspectRatio.


playing : bool

This property holds whether the media is playing.

Defaults to false, and can be set to true to start playback.


position : int

This property holds the current playback position in milliseconds.


posterUrl : variant

This property holds the URL of a poster image.

See also QtMedia::PosterUrl.


publisher : variant

This property holds the publisher of the media.

See also QtMedia::Publisher.


ratingOrganisation : variant

This property holds the name of the rating organisation responsible for the parental rating of the media.

See also QtMedia::RatingOrganisation.


resolution : variant

This property holds the dimension of an image or video.

See also QtMedia::Resolution.


sampleRate : variant

This property holds the sample rate of the media's audio stream in hertz.

See also QtMedia::SampleRate.


seekable : bool

This property holds whether position of the video can be changed.


size : variant

This property property holds the size of the media in bytes.

See also QtMedia::Size.


source : url

This property holds the source URL of the media.


status : enum

This property holds the status of media loading. It can be one of:


subTitle : variant

This property holds the sub-title of the media.

See also QtMedia::SubTitle.


title : variant

This property holds the tile of the media.

See also QtMedia::Title.


trackCount : variant

This property holds the number of track on the album containing the media.

See also QtMedia::TrackNumber.


trackNumber : variant

This property holds the track number of the media.

See also QtMedia::TrackNumber.


userRating : variant

This property holds a user rating of the media in the range of 0 to 100.

See also QtMedia::UserRating.


videoBitRate : variant

This property holds the bit rate of the media's video stream in bits per second.

See also QtMedia::VideoBitRate.


videoCodec : variant

This property holds the encoding of the media's video stream.

See also QtMedia::VideoCodec.


videoFrameRate : variant

This property holds the frame rate of the media's video stream.

See also QtMedia::VideoFrameRate.


volume : qreal

This property holds the volume of the audio output, from 0.0 (silent) to 1.0 (maximum volume).


writer : variant

This property holds the writer of the media.

See also QtMedia::Writer.


year : variant

This property holds the year of release of the media.

See also QtMedia::Year.


Signal Documentation

Video::onBuffered ()

This handler is called when the media has finished buffering.


Video::onBuffering ()

This handler is called when the media starts buffering.


Video::onEndOfMedia ()

This handler is called when playback stops because end of the media has been reached.


Video::onLoaded ()

This handler is called when the media source has been loaded.


Video::onPaused ()

This handler is called when playback is paused.


Video::onResumed ()

This handler is called when playback is resumed from the paused state.


Video::onStalled ()

This handler is called when playback has stalled while the media buffers.


Video::onStarted ()

This handler is called when playback is started.


Video::onStopped ()

This handler is called when playback is stopped.


Method Documentation

Video::pause ()

Pauses playback of the media.

Sets the playing and paused properties to true.


Video::play ()

Starts playback of the media.

Sets the playing property to true, and the paused property to false.


Video::stop ()

Stops playback of the media.

Sets the playing and paused properties to false.



Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.0