Music Control

Last Updated on : 2021-09-18 05:30:49download

This topic describes the properties and example of the IP camera (IPC) music control component TYIpcMusicControl.

Preview

Music Control

Properties

Field Description Required Type Default value
ipcMusicControl The play control. Valid values:
  • 0: play
  • 1: pause
Yes string 1
ipcMusicMode The repeat mode. Valid values:
  • 0: repeat all
  • 1 repeat one
  • 2 shuffle
Yes string 0
themeColor The theme color. No string red
containerStyle The container style. No ViewStyle {}
pressList Taps the list. Yes () => void () => {}
pressControl Taps the control button. No () => void () => {}
pressMode Taps the mode button. No () => void () => {}
pressPrev Taps the Previous button. No () => void () => {}
pressNext Taps the Next button. No () => void () => {}

Example

import { TYIpcMusicControl } from '@tuya/tuya-panel-ipc-sdk';

return (
  <View>
      <TYIpcMusicControl containerStyle={{ marginLeft: 50 }}  />
  </View>
)