Unable to pass videoURL for flash player dynamically
I need a help. scenario is like this, 1. I have two CEWP(contentEditorWebpart) in my sharepoint page. 2. In first CEWP I have a image and second CWEP has a flashplayer. 3.In click of the image i am passing a video url to second cewp through java script.and it should play. Problem : I am able to pass the url to the second CEWP but unable to play. First CEWP script -------------------------------- <IMG style="BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; BORDER-LEFT: 0px solid; BORDER-BOTTOM: 0px solid" onclick=ItemClick('http://moss-demo-vm:13629/Shared%20Documents/video.flv'); src="http://moss-demo-vm:13629/Shared%20Documents/pdf.bmp" border=0 href="http://moss-demo-vm:13629/SharePointSandBoxMediaPlayerVideos/lilly_flash.swf"> Second CEWP script --------------------------------- <script type="text/javascript"> function ItemClick(urlvalue) { alert(urlvalue); // I am getting the video url here but flash player not able to play, but if i will hard code the url its working. } </script> <object id="PlayerEx2" width="200" height="200"> <param name="movie" value="http://moss-demo-vm:13629/Shared%20Documents/player.swf"> <param name="allowscriptaccess" value="always"> <param name="flashvars" value="file="'+urlvalue+'""> // hard coded here insted of the "urlvalue" <embed id="PlayerEx2" name="PlayerEx2" src="http://moss-demo-vm:13629/Shared%20Documents/player.swf" width="480" height="270" allowscriptaccess="always" allowfullscreen="true" flashvars="file="'+urlvalue+'""/> // hard coded here insted of the "urlvalue" </object> The similar kind of code works for my media player but for flash some parameters are changes....Please let me know the solution.
November 22nd, 2010 9:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics