Game Development Reference
In-Depth Information
Other video queries
The s3eVideo API, like the s3eSound and s3eAudio APIs, also has a pair of functions
for reading and writing global video parameters. They are called s3eVideoGetInt
and s3eVideoSetInt . They are called as follows:
int32 lValue = s3eVideoGetInt(lProperty);
s3eVideoSetInt(lProperty, lValue);
The following table shows the values that can be used for the lProperty parameter:
Property
Description
S3E_VIDEO_VOLUME
This property is used to find the current volume level
for the sound associated with the video clip and also
to set a new volume. The maximum volume level is
defined by the value S3E_VIDEO_MAX_VOLUME .
S3E_VIDEO_DEFAULT_VOLUME This is a read-only property that shows the default
volume that will be used for playing back the sound
in a video clip. Its value is intended to provide a
similar level of volume across all device types.
S3E_VIDEO_STATUS
This is a read-only parameter showing the current
status of the video playback. It will return one of
the following values: S3E_VIDEO_STOPPED , S3E_
VIDEO_PLAYING , S3E_VIDEO_PAUSED , or S3E_
VIDEO_FAILED .
S3E_VIDEO_POSITION
This property returns the current playback position of
the video in milliseconds, or 0 if no video is playing.
This parameter cannot be written to, so it is not
possible to jump to a particular point in a video clip.
Example code
This chapter has three example projects associated with it and they are described in
the following sections. The sound, audio, and video clips used in these projects were
sourced from a couple of great websites that offer a vast variety of stock media for
free! Links to these websites are provided here:
http://www.royalty-free-music-room.com
http://www.partnersinrhyme.com
Search WWH ::




Custom Search