IltmmPlay::put_UseDVDSource

#include "ltmm.h"

C Syntax

HRESULT IltmmPlay_put_UseDVDSource (pPlay, newVal)

C++ Syntax

HRESULT put_UseDVDSource (newVal)

 

IltmmPlay *pPlay;

/* pointer to an interface */

VARIANT_BOOL newVal;

/* flag */

Sets a value that indicates whether the IltmmPlay object will use the DVD Source object when attempting to play a DVD image A set of files that contain all of the video and audio content for a DVD, organized with a table of contents (optional). See also: Title The name for a group of related video files (called "Chapters") on your DVD. For example, for a DVD called "My Summer Vacation," you might have the titles "Water Skiing," "New Friends," and "Hiking." For each of those titles, you might have one or more different video files., Chapter The name for each individual video file on a DVD. For example, under the title "Water Skiing", you might have the chapters "My first try," "My first wreck," and "My first jump.", ISO Image An ISO image (.iso) is a disk image of a file system. It includes data files that are contained in the ISO image along with filesystem metadata. ISO images are an alternative to physical media for distribution of a "DVD" over the Internet. Most operating systems allow ISO images images to be "played" as if they were physical discs. See also: DVD Image...

Parameter

Description

pPlay

Pointer to an IltmmPlay interface.

newVal

Flag that indicates whether the IltmmPlay object will use the DVD Source object when attempting to play a DVD image. Possible values are:

 

Value

Meaning

 

VARIANT_TRUE

Use the DVD Source object to play a DVD image.

 

VARIANT_FALSE

Do not use the DVD Source object to play a DVD image.

Returns

S_OK

The function was successful.

<> S_OK

An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

Setting the UseDVDSource property in the play object to VARIANT_TRUE instructs the play object to use the DVD Source filter for DVD playback instead of the default DVD Navigator. Normally, for playback it is better to use the default DVD Navigator, because the DVD Navigator makes the playback act like a DVD (with menus). When the DVD Source filter is used, the DVD playback is more like the playback of a normal multimedia file. For example, the seek bar will function from the beginning of the selected playlist (edited through the ltmmDVDSource interfaces) to the end. There will be no menus. DVD Source was actually created for conversions. Using the DVD Source makes it possible to select the important parts of the video and ignore the rest. It also makes it possible to accurately preview the chapter selections being used for a conversion. Additionally, the DVD source allows you to programmatically select which audio track or subpicture stream to use. For example, a player application might want to automatically select the Spanish audio track or the French subtitles.

Required DLLs and Libraries

LTMM

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64

See Also

Elements:

IltmmPlay::get_UseDVDSource

Topics:

ltmmDVDSource Object

 

IltmmDVDSource Interface

 

IltmmPlay Interface

 

Multimedia Function Groups

Example

For a C example, refer to the DVD Source Example for C.

For a C++ example, refer to the DVD Source Example for C++.