mme_video_set_subtitle()

Set the subtitle for video playback

Synopsis:

#include <mme/mme.h>

int mme_video_set_subtitle ( mme_hdl_t *hdl,
                             uint64_t title,
                             int index );

Arguments:

hdl
An MME connection handle.
title
The title to set the subtitle for.
index
An index to a desired subtitle from the array filled in by a previous call to mme_video_get_subtitle_info(). 0 (zero) points to the first available choice. A -1 in this parameter disables subtitles.

Library:

mme

Description:

The function mme_video_set_subtitle() sets the subtitles for video playback a control context. Before calling this function, use mme_get_subtitle_info() to get the available subtitles for the video.

Events

None delivered.

Blocking and validation

This function blocks on io-media. It returns only when it has completed.

Returns:

0
Success.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

mme_video_get_angle_info(), mme_video_get_audio_info(), mme_video_get_info(), mme_video_get_status(), mme_video_get_subtitle_info(), mme_video_set_angle(), mme_video_set_audio(), mme_video_set_properties()