Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_PLAYCTRL_TYPE

### Enum Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    enum NET_SDK_PLAYCTRL_TYPE
    {
        NET_SDK_PLAYCTRL_PAUSE,
        NET_SDK_PLAYCTRL_FF,
        NET_SDK_PLAYCTRL_REW,
        NET_SDK_PLAYCTRL_RESUME,
        NET_SDK_PLAYCTRL_STOP,
        NET_SDK_PLAYCTRL_FRAME,
        NET_SDK_PLAYCTRL_NORMAL,
        NET_SDK_PLAYCTRL_STARTAUDIO,
        NET_SDK_PLAYCTRL_STOPAUDIO,
        NET_SDK_PLAYCTRL_AUDIOVOLUME,
        NET_SDK_PLAYCTRL_SETPOS,
        NET_SDK_PLAYCTRL_PREVIOUS,
    };

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    public enum NET_SDK_PLAYCTRL_TYPE
    {
        NET_SDK_PLAYCTRL_PAUSE,
        NET_SDK_PLAYCTRL_FF,
        NET_SDK_PLAYCTRL_REW,
        NET_SDK_PLAYCTRL_RESUME,
        NET_SDK_PLAYCTRL_STOP,
        NET_SDK_PLAYCTRL_FRAME,
        NET_SDK_PLAYCTRL_NORMAL,
        NET_SDK_PLAYCTRL_STARTAUDIO,
        NET_SDK_PLAYCTRL_STOPAUDIO,
        NET_SDK_PLAYCTRL_AUDIOVOLUME,
        NET_SDK_PLAYCTRL_SETPOS,
        NET_SDK_PLAYCTRL_PREVIOUS,
    }

### Function Description

Playback control command, used with `NET_SDK_PlayBackControl`

### Member Description

Enum name | Value | Remark
--- | --- | ---
NET_SDK_PLAYCTRL_PAUSE | 0 | Pause
NET_SDK_PLAYCTRL_FF | 1 | Fast forward
NET_SDK_PLAYCTRL_REW | 2 | Back
NET_SDK_PLAYCTRL_RESUME | 3 | Recover
NET_SDK_PLAYCTRL_STOP | 4 | Stop
NET_SDK_PLAYCTRL_FRAME | 5 | Single frame playback
NET_SDK_PLAYCTRL_NORMAL | 6 | Normal playback
NET_SDK_PLAYCTRL_STARTAUDIO | 7 | This control type and the following two control types will only work when decoded and displayed internally in the SDK, and are only supported by Windows.
NET_SDK_PLAYCTRL_STOPAUDIO | 8 | Stop speech, only supported by Windows
NET_SDK_PLAYCTRL_AUDIOVOLUME | 9 | Adjust the voice volume. At this time, the voice adjustment is realized through the dwInValue parameter in the `NET_SDK_PlayBackControl` function. The volume range is 0~0xFFFF. It is only supported by Windows.
NET_SDK_PLAYCTRL_SETPOS | 10 | Playback progress, calculated in seconds from January 1, 1970
NET_SDK_PLAYCTRL_PREVIOUS | 11 | Single frame playback

Error Code