Click here to Skip to main content
14,128,695 members
Rate this:
 
Please Sign up or sign in to vote.
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

<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/
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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]
   
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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[^]
   
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

See here[^] for some more answers.
   

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190518.1 | Last Updated 20 Oct 2010
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100