Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My requirements is ,

In a page have a video list and a player in a .aspx page.
When press any one of the video select then play corresponding video in this player.
I search in net ,but I can't implement . SO need exact step for this.

In a html page I played a video code as below

XML
<script language ="javascript" type ="text/javascript" src ="swfobject.js"  >
</script>
<script language ="javascript" type ="text/javascript" >
        var s1 = new SWFObject("player.swf","ply","280","216 ","9");
        s1.addParam("allowfullscreen","true");
        s1.addParam("allowscriptaccess","always");
        s1.addParam("flashvars","file=03.flv&image=vamana-swami.jpg");
        s1.write("container");
        return true;

</script>


Then Played that video . I just use this code But nothing .
Posted
Comments
GPUToaster™ 20-Oct-10 7:15am    
You mean to say....The code you have mentioned is not working!! Right. If it is so then you may not be having a flash player installed. The code "new SWFObject" searches for the "player.swf" in your system which may not be there. In order to use this code you can install a flash player. Use any link from below and

http://www.flashplayerpro.com/downloadFlashPlayer.htm
http://www.longtailvideo.com/players/jw-flv-player/

Alternatively,refer to this link (Shockwave player)http://kb2.adobe.com/cps/157/tn_15722.html[Adobe Help]

Also install shockwave player from http://get.adobe.com/shockwave[Get ShockWavePlayer]
 
Share this answer
 
These link help you. flash player support .flv files. if you want to display other formats you need to use Object tags

The Object Element[^]
OBJECT - Embedded Object[^]
 
Share this answer
 
See here[^] for some more answers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900