Classes and constructors to wrap media into widgets
Functions
ImageWidget(): The ImageWidget constructor functionVideoWidget(): The VideoWidget constructor functionAudioWidget(): The AudioWidget constructor function
Super classes
HasTraits -> Widget -> DOMWidget -> DescriptionWidget -> ValueWidget -> MediaWidget
Public fields
formatA string, giving the graphics fromat.
valueA Bytes traitlet.
Methods
Inherited methods
HasTraits$notify()HasTraits$observe()HasTraits$validate()Widget$_send()Widget$check_version()Widget$close()Widget$display_data()Widget$get_state()Widget$handle_buffers()Widget$handle_comm_msg()Widget$handle_comm_opened()Widget$handle_custom_msg()Widget$handle_displayed()Widget$handle_event()Widget$on_displayed()Widget$on_event()Widget$on_msg()Widget$open()Widget$send()Widget$send_state()Widget$set_state()DOMWidget$add_class()DOMWidget$has_class()DOMWidget$remove_class()
MediaWidget$new()
Initialize an object
Usage
MediaWidget$new(from_file = NULL, from_url = NULL, ...)Super classes
HasTraits -> Widget -> DOMWidget -> DescriptionWidget -> ValueWidget -> MediaWidget -> ImageWidget
Public fields
_view_nameName of the Javascript view in the frontend.
_model_nameName of the Javascript model in the frontend.
formatA string, giving the graphics fromat.
widthA string, describing the width in CSS language, e.g. "480px".
heightA string, describing the height in CSS language, e.g. "480px".
Methods
Inherited methods
HasTraits$notify()HasTraits$observe()HasTraits$validate()Widget$_send()Widget$check_version()Widget$close()Widget$display_data()Widget$get_state()Widget$handle_buffers()Widget$handle_comm_msg()Widget$handle_comm_opened()Widget$handle_custom_msg()Widget$handle_displayed()Widget$handle_event()Widget$on_displayed()Widget$on_event()Widget$on_msg()Widget$open()Widget$send()Widget$send_state()Widget$set_state()DOMWidget$add_class()DOMWidget$has_class()DOMWidget$remove_class()MediaWidget$from_url()MediaWidget$initialize()MediaWidget$on_change()
Super classes
HasTraits -> Widget -> DOMWidget -> DescriptionWidget -> ValueWidget -> MediaWidget -> VideoWidget
Public fields
_view_nameName of the Javascript view in the frontend.
_model_nameName of the Javascript model in the frontend.
formatA string, giving the video fromat.
widthA string, describing the width in CSS language, e.g. "480px".
heightA string, describing the height in CSS language, e.g. "480px".
autoplayBoolean, when TRUE the video starts when it is displayed.
loopBoolean, when TRUE the video restarts after finishing.
controlsBoolean, when TRUE then video controls are shown.
Methods
Inherited methods
HasTraits$notify()HasTraits$observe()HasTraits$validate()Widget$_send()Widget$check_version()Widget$close()Widget$display_data()Widget$get_state()Widget$handle_buffers()Widget$handle_comm_msg()Widget$handle_comm_opened()Widget$handle_custom_msg()Widget$handle_displayed()Widget$handle_event()Widget$on_displayed()Widget$on_event()Widget$on_msg()Widget$open()Widget$send()Widget$send_state()Widget$set_state()DOMWidget$add_class()DOMWidget$has_class()DOMWidget$remove_class()MediaWidget$from_url()MediaWidget$initialize()MediaWidget$on_change()
Super classes
HasTraits -> Widget -> DOMWidget -> DescriptionWidget -> ValueWidget -> MediaWidget -> AudioWidget
Public fields
_view_nameName of the Javascript view in the frontend.
_model_nameName of the Javascript model in the frontend.
formatA string, giving the audio fromat.
autoplayBoolean, when TRUE the video starts when it is displayed.
loopBoolean, when TRUE the video restarts after finishing.
controlsBoolean, when TRUE then video controls are shown.
Methods
Inherited methods
HasTraits$notify()HasTraits$observe()HasTraits$validate()Widget$_send()Widget$check_version()Widget$close()Widget$display_data()Widget$get_state()Widget$handle_buffers()Widget$handle_comm_msg()Widget$handle_comm_opened()Widget$handle_custom_msg()Widget$handle_displayed()Widget$handle_event()Widget$on_displayed()Widget$on_event()Widget$on_msg()Widget$open()Widget$send()Widget$send_state()Widget$set_state()DOMWidget$add_class()DOMWidget$has_class()DOMWidget$remove_class()MediaWidget$from_file()MediaWidget$from_url()MediaWidget$initialize()MediaWidget$on_change()