AVAppToDevMessageType

Message types used by avdevice_app_to_dev_control_message().

Values

ValueMeaning
AV_APP_TO_DEV_NONEMKBETAG('N', 'O', 'N', 'E')

Dummy message.

AV_APP_TO_DEV_WINDOW_SIZEMKBETAG('G', 'E', 'O', 'M')

Window size change message.

Message is sent to the device every time the application changes the size of the window device renders to. Message should also be sent right after window is created.

data: AVDeviceRect: new window size.

AV_APP_TO_DEV_WINDOW_REPAINTMKBETAG('R', 'E', 'P', 'A')

Repaint request message.

Message is sent to the device when window has to be repainted.

data: AVDeviceRect: area required to be repainted. NULL: whole area is required to be repainted.

AV_APP_TO_DEV_PAUSEMKBETAG('P', 'A', 'U', ' ')

Request pause/play.

Application requests pause/unpause playback. Mostly usable with devices that have internal buffer. By default devices are not paused.

data: NULL

AV_APP_TO_DEV_PLAYMKBETAG('P', 'L', 'A', 'Y')
AV_APP_TO_DEV_TOGGLE_PAUSEMKBETAG('P', 'A', 'U', 'T')
AV_APP_TO_DEV_SET_VOLUMEMKBETAG('S', 'V', 'O', 'L')

Volume control message.

Set volume level. It may be device-dependent if volume is changed per stream or system wide. Per stream volume change is expected when possible.

data: double: new volume with range of 0.0 - 1.0.

AV_APP_TO_DEV_MUTEMKBETAG(' ', 'M', 'U', 'T')

Mute control messages.

Change mute state. It may be device-dependent if mute status is changed per stream or system wide. Per stream mute status change is expected when possible.

data: NULL.

AV_APP_TO_DEV_UNMUTEMKBETAG('U', 'M', 'U', 'T')
AV_APP_TO_DEV_TOGGLE_MUTEMKBETAG('T', 'M', 'U', 'T')
AV_APP_TO_DEV_GET_VOLUMEMKBETAG('G', 'V', 'O', 'L')

Get volume/mute messages.

Force the device to send AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED or AV_DEV_TO_APP_MUTE_STATE_CHANGED command respectively.

data: NULL.

AV_APP_TO_DEV_GET_MUTEMKBETAG('G', 'M', 'U', 'T')

Meta