This tutorial assumes that you have just installed FCplayer, as an embedded object, in your web page, following steps 1 and 2 of the installation instructions. If you have not, you will need to go back and install it before proceding.
Note: Before you can play flvs on a windows server, you must set the mime types for flv/mp4 in IIS. Here is a tutorial on how to do this: Adding .FLV MIME Type in IIS
OK, go ahead and open your page in your web browser.
You should see the FCPlayer Media player displayed in your page at the point where you pasted the insert. If you click the play button, FCPlayer will play the video sample.flv, which is located in the FCPlayer/videos folder.
Now let's look again at the code you cut and pasted into your web page. Specifically this snippet:
<script language="JavaScript">FCPlayer.play('null','null','sample.flv');</script>
The FCPlayer.play function, above, is telling FCPlayer to play the file 'sample.flv' in the default folder, which is FCPlayer/videos.
In general, you use the FCPlayer.play function to tell FCPlayer what to play, how to play it, and which options to use. You will learn more about the FCPlayer.play function as you read these how-tos.
An example: Playing your own videos.
The easiest way to start playing your own videos is to do the following:
1) Let's say you have a video called mycat.flv. Place the video in the FCPlayer/videos folder.
2) Next, instruct FCPlayer to play your video by changing the line of code above to:
3) That's it. Open your web page, again, with your browser and you should be able to play mycat.flv.
Now you should return to the How to play a video tutorial, to learn about more things you can do with the FCPlayer.play function.
|