from pymycobot import MyBuddyEmoticon
import time
# [video_path, Playback_duration(s)]
video1 = ["/home/er/pymycobot/emo/face_video_3_2.mp4", 10]
datas = [video1]
me = MyBuddyEmoticon(datas)
me.start()-
Function: API for playing emoticons
-
Parameters:
- file_path (list):
[[path, time]]The absolute path of facial expression video and the length of time to play.Time in seconds. - window_size (tuple):
(Length, width)Size of the playback window (default is full screen). - loop (bool): Loop playback or not (default False. only once by default).
- file_path (list):
- Function: Get Playfile List
- Return
- video path list
- Function: Add Playback File
- Parameters
path_time(list):
[path, time]The video address to be added and the running time
-
Function: Delete the element with the specified subscript in the playlist list
-
Parameters
index(int):: The subscript of the element in the playlist to be deleted
- Function: Pause playback
- Function: Continue playing
- Function: start playing video
- Function: Wait for the thread playing the video to finish.