Purpose: This tutorial will help you create a cross-platform newscast in Adobe Flash that you can put on your school website.
You could put a video on the website in Windows Media or Quicktime, but it could take some time for the video to download. You also have to worry about the people having the proper codecs installed. Converting it to flash and embedding it ensures that people can see the video in most cases. People with computers up to about 8 years old should be able to see the video, but it may require a faster connection depending on the size of the video produced. Many people have flash 7 or newer on their computer and should be able to see the video. You should always evaluate whether the people in your community will be able to see the content that you are providing. And you should let them know when you are using a technology that is not HTML, the markup language used in making web pages.
The tutorial assumes the following:
Now, on to the meat of the project:
Next, we will convert the video to a format usable by flash.
Next, we take a screenshot of the video.
Now, we will create a playlist for the video player that we will embed in the webpage.
<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/"> <trackList> </trackList> </playlist>
Let me explain the lines in order in the playlist above.
Simple, no? Now we need to add the video to the playlist. In between the start and end of the track list, we want to add a track. Here is the format:
<track> <creator>Newscast</creator> <title>March</title> <location>/newscast/media/200803.flv</location> <image>/newscast/media/200803.jpg</image> </track>
Just as before, the lines are mostly self explanatory:
We take this track and put it in between the start and end of the track list like this:
<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/"> <trackList> <track> <creator>Newscast</creator> <title>February</title> <location>/newscast/media/200802.flv</location> <image>/newscast/media/200802.jpg</image> </track> </trackList> </playlist>
New tracks should be put at the top of the list and older ones should follow like this:
<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/"> <trackList> <track> <creator>Newscast</creator> <title>March</title> <location>/newscast/media/200803.flv</location> <image>/newscast/media/200803.jpg</image> </track> <track> <creator>Newscast</creator> <title>February</title> <location>/newscast/media/200802.flv</location> <image>/newscast/media/200802.jpg</image> </track> </trackList> </playlist>
You are nearly finished! The final part is adding the flash object to your page. You will need to edit the HTML of the document you want the flash to appear directly in the desired location.
<object type="application/x-shockwave-flash" data="/newscast/mediaplayer.swf" width="500" height="240" id="mediaplayer"> <param name="allowScriptAccess" value="sameDomain"/> <param name="movie" value="/newscast/mediaplayer.swf"/> <param name="quality" value="high"/> <param name="scale" value="noScale"/> <param name="wmode" value="transparent"/> <param name="flashvars" value="file=/newscast/playlist.xml&displayheight=200&displaywidth=320&autoscroll=true"/> </object>
Once the page has been saved, publish the page and also make sure that the newscast folder is uploaded to your site. You should see the flash object in your new page after it is published.
If you have any questions or problems with the instructions above, please email me at cedwards@wcs.k12.va.us