Video and Audio Flashcards

1
Q

Why is Flash less popular now for websites and videos?

A
  • Emergence of javascript libraries that support animation
  • Flash does not met accessibility requirements
  • Emergence of native browser support (video and audio)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How would we add a flash video to a page

A

Generally done via Javascript
<code></code>

</code>

We will also need a flash video player . An open source one is osplayer

Then we call the swfobject and it’s method embedSWF
<code></code>

var flashvars = {};
var params = [movie:"../video/bird.flv"]
swfobject.embedSWF("flash/osplayer.swf", "bird", "400", "300", "8.0.0", flashers, params);

</code>

The parameters for the method go like this:
video to play, id value of the element that the video should replace, width and height in pixels, min flash player

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

What video formats do browsers support?

A

H264: IE and Safari
WebM: Androis, Chrome, Firefox, Opera

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

What’s the tag options for adding video

A

Other options
preload: none | auto | metadata
autoplay

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

What if I need to include videos in multiple formats

A

You can use a source tag inside the video tag

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

What audio formats do browsers support

A

MP3: Safari, Chrome, IE

Ogg Vorbis: Firefox, Chrome, Opera

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

How do I add audio to a page

A

Also takes
preload: none | auto | metadata
loop

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

What do I need to do include different audio formats

A

Use the source tag

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