Adds a new title to the menu.
#include "ILTDvdWriter2.h"
Language | Syntax |
---|---|
C | HRESULT ILTDvdWriter_AddMenuTitle(pDVDWriter, Title, Index) |
C++ | HRESULT AddMenuTitle(Title, Index) |
Pointer to an ILTDvdWriter interface.
A character string that contains the title text that will appear in the menu.
A zero-based index of the title; where the title will be inserted in the list of titles. Pass -1 to append the title to the end of the list.
Value | Meaning |
---|---|
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. |
The title list can be modified at any time before writing the menu. A maximum of 36 titles can be added. Calling ILTDvdWriter::AddMenuTitle with an existing index will not make an update: it will insert a new title at the specified index and shift the list down.
Menu writing should be the last step in a DVD image authoring process. Writing the menu first will cause an error and if a new title is written after the menu has been written, then the menu will be destroyed.
Any multimedia file can be used as the menu background, including a single page image, a multipage image, or a video. All menus require a background video. To add menus to the DVD image, perform the following steps:
Language | Example |
---|---|
C | Creating DVD Images |
C++ | Creating DVD Images |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document