Link Search Menu Expand Document

arena-py API v0.9.6

arena.attributes.video_control

VideoControl attribute class to manage its properties in the ARENA: Adds a video to an entity and controls its playback. Usage: video_control=VideoControl(...)

Parameters
  • bool anyone_clicks: Responds to clicks from any user. Defaults to 'True' (optional)
  • bool autoplay: Video starts playing automatically. (optional)
  • bool cleanup: Automatically remove HTML5 video and img assets from DOM on object removal. Defaults to 'True' (optional)
  • str frame_object: URL of a thumbnail image, e.g. 'store/users/wiselab/images/conix-face-white.jpg'. (optional)
  • bool video_loop: Video automatically loops. Defaults to 'True' (optional)
  • str video_object: Name of object where to put the video, e.g. 'square_vid6'. (optional)
  • str video_path: URL of the video file, e.g. 'store/users/wiselab/videos/kungfu.mp4'. (optional)
  • float volume: Video sound volume. Defaults to '1' (optional)
VideoControl(**kwargs)