Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Flash Video Players 411

14


Then you have to add a container to the page in which the video will appear:


<a href="myvideo.mp4"
style="display: block; width: 425px; height: 300px;"
id="player">Download video


And finally, you need to install the player in the target element:



Instead of using the tag or using a
as the container for the player,
Flowplayer recommends using the tag. The player will play the video referenced in
the href attribute of the
tag. Here’s the full example page, which is shown in Figure
14.14:


<!DOCTYPE html>







style="display:block; width:520px; height:330px"
id="player">




FIGURE 14.14
A video played
using Flowplayer.