media elements and events Flashcards

1
Q

Name the media element attributes.

A

scr, preload, autoplay, mediagroup, loop, muted and controls are the media element attributes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When are the pending events and callbacks for media element discarded?

A

The pending events and callbacks for media element are discarded when the media element starts loading a new resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When is a media element potentially playing?

A

A media element is said to be potentially playing when its paused attribute is false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many tracklist objects of a media element are there?

A

There are two tracklist objects namely: multipletracklist object and exclusivetracklist object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are media events?

A

Media events are those events which are triggered by media like videos, images and audio.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does media event oncanplay do?

A

This event allows the script to be executed when media can start play, but might have to stop for buffering.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does media event oncanplaythrough do?

A

This event allows the script to be executed when media can be played to the end, without stopping for buffering.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does media event onemptied do?

A

This event allows the script to be run when a media resource element suddenly becomes empty (network errors, errors on load etc.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does media event onloadedmetadata do?

A

This event allows the script to be run when the duration and other media data of a media element is loaded.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does media event onstalled do?

A

This event allows a script to be executed when there is an error in fetching media data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does media event onvolumechange do?

A

This event allows a script to be executed when media changes the volume, also when volume is set to “mute”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does media event onwaiting do?

A

This event allows a script to be executed when media has stopped playing, but is expected to resume.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly