Please enable JavaScript.
Coggle requires JavaScript to display documents.
media_flow - Coggle Diagram
media_flow
Sockets
-
-
-
-
Callbacks
-
Trigger Callback
Checks for the sequence name. Tracks the timing of the event. Checks if the previous session is continued.
-
Continue Callback
Checks for the buffer count and also if the media type is present in the list or not, sets the count to -=1 and buffer_count to +=1.
Checks for the mode to be in sequence or random and sets the timing variables accordingly.
Checks for the timings\s of yes to a event that is popped up on the ipad.
No Callback
Checks for No response to the popped up event. Returns the skipped event and also raises the count by 1. And then all the variables mode, internal_count , random_count, count will all be marked 0.
random_shuffle
Checks if the media is ended. Checks if the random_count =0, then searches for the json , if not found return an error and resets the counter and timer. Then checks for a random media index and if found then pkays it and follows with a Done message.
get_random_idx
Gets a desired count and checks if it is less than the internal media count and if true plays the media otherwise it will display a resetting message.
filter_preferences
Check if the profile exists in the preferences. Checks if the requested media exists in the preferences. Filters the user preferences and returns an empty list if no preferences. Ensures Ensures that songs dont repeat.
-
scheduled_events
Checks for the time of the day for the announcement of it accordingly. Returns the image for a specific day.(doubt)
-
-
log_watch_times
there are two video libraries youtube and local and depends on start and end it will list down the session summary and runtime.This can also include other media files.
get_JSON
Get the dictionary from the server or if not available there get it from the local file using function get_json_bkp. and if can't find file from the mentioned path then get it from the json_labs. Checks if the requested robot exits from which the media is requested. Checks the response and if there is an error invokes the get_json_bkp. Checks if the values are in json format if not invokes get_json_bkp.
parse_media_types
Checks if media_type is a question and makes an announcement and depending upon the user input returns to True or False to yes or no respectively. For the reponse as flase increses the count by 1. Checks for all the media types like announcement, announcement_image and imgae_riddles.
parse_actions
According to the user's actions there are pre defined tasks that would be done. Those all would be done by movement, smile , exercise etc analysis.