All Products
Search
Document Center

:Local video playback

Last Updated:Mar 01, 2022

The LinkVisual SDK provides the local video playback feature. This topic describes the functions that are used to implement the feature and the data forwarding process.

In this topic, the local video playback feature is called video-on-demand (VOD).

Data forwarding process

VOD

Functions

Phase

Description

Function

Create VOD tasks.

Forwards commands.

lv_message_adapter

Starts VOD

lv_start_push_streaming_cb

Sends encoding information about audio and video streams.

lv_stream_send_config

Notifies a device to start pushing streams.

lv_on_push_streaming_cmd_cb

Note

You must use the LV_STORAGE_RECORD_START method in the function.

Sends audio and video data.

lv_stream_send_media

Send control requests.

Sends SEEK requests.

lv_on_push_streaming_cmd_cb

Note

You must use the LV_STORAGE_RECORD_SEEK method in the function.

Suspends requests.

lv_on_push_streaming_cmd_cb

Note

You must use the LV_STORAGE_RECORD_PAUSE method in the function.

Resumes playback requests.

lv_on_push_streaming_cmd_cb

Note

You must use the LV_STORAGE_RECORD_UNPAUSE method in the function.

Sets the playback speed of videos.

lv_on_push_streaming_cmd_cb

Note

You must use the LV_STORAGE_RECORD_SET_PAPAM method in the function.

Sends audio and video data.

lv_stream_send_media

Terminate VOD (Method 1)

Runs a remote command to terminate VOD.

lv_stop_push_streaming_cb

Terminate VOD (Method 2)

Triggers a device to terminate VOD when the playback of a video is complete.

lv_stream_send_cmd

Note

You must use the LV_STORAGE_RECORD_COMPLETE method in the function.