Module Media.ElSource
The HTML media element interface.
Warning. This binding is incomplete, the modules El.Audio_track, El.Video_track, El.Text_track are mostly empty.
Preliminaries
Audio tracks (incomplete).
Video tracks (incomplete).
Text tracks (incomplete).
Time ranges.
Media interface
The type for elements satifying the HTMLMediaElement interface.
of_el e is the media interface of e. This throws a JavaScript error if e is not a Brr.El.audio or Brr.El.video element.
to_el m is m as an an element.
Error state
error m is the most recent error of m.
Network state
src m is the URI source of the played media.
set_src m s sets the src of m to s.
src_object m s is the source object of m.
set_src_object m o sets the src_object of m to o.
current_src m is the current source of m.
cross_origin m is the CORS setting of m.
set_cross_origin m c sets the cross_origin of m to c.
network_state m is the network state of m.
preload m is the preload state of m.
set_preload m p sets the preload of m to p.
buffered m are the ranges of media that are buffered:
load m restarts loading m.
can_play_type m t indicates if m can play t.
Ready state
ready_state m indicates the readiness of m.
seeking m indicates m is seeking a new position.
Playback state
current_time m is the current time of m.
set_current_time_s m t sets the current_time_s of m to t.
fast_seek_s m t seeks m to t.
duration_s m is the duration of m.
paused m indicates whether m is paused.
default_playback_rate m is the default playback rate of m.
set_default_playback_rate m sets the default_playback_rate of m.
playback_rate m is the playback rate of m.
set_playback_rate m sets the playback_rate of m.
played m are the ranges that have been played.
seekable m indicates the time ranges that are seekable.
ended m is true if the media has finished playing.
autoplay m is the autoplay behaviour of m.
set_auto_play m b sets autoplay of m to b.
loop m inidicates if m is set to loop.
set_loop m b sets the loop of m to b.
play m plays m.
pause m pauses m.
Controls
controls m indicates if media controls are shown.
set_controls m b sets the controls of m to b.
volume m is the volume of m.
set_volume m b sets the volume of m to b.
muted m indicates whether audio is muted.
set_muted m b sets the muted of m to b.
default_muted m is the default muted state.
set_default_muted m b sets the default_muted of m to b.
Tracks
audio_track_list m are the audio tracks of m.
video_track_list m are the video tracks of m.
text_trac_list m are the text tracks of m.
capture_tream m is a media stream for m.