I have put two videos on one page and can't make the second one play. Just get the this page will be replaced notice. I only changed the video file name and wonder if the player code has to be altered. www.the-slingshot.com
I am getting a message from Flash Player Security that it has blocked an unsafe operation.It says that it has blocked access to www.the-slingshot.com and I find that address in the permitted sites. One movie loads fine and plays as it should. The second player hangs up on this text will be replaced. I am using Firefox and could find nothing about this situation in their help or in Adobe help.
Good code that loads is: <script type='text/javascript' src='swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'> var s1 = new SWFObject('http://www.the-slingshot.com/mediaplayer/player.swf','mpl','470','320','9'); s1.addParam('allowfullscreen','true'); s1.addParam('allowscriptaccess','always'); s1.addParam('wmode','opaque'); s1.addVariable('file','http://www.the-slingshot.com/video/vasswastewater.flv'); s1.addVariable('title','The Moore County Water Summit'); s1.addVariable('backcolor','9999FF'); s1.write('mediaspace'); </script></div>
Blocked code is: <script type="text/javascript" src="swfobject.js"></script>
<div id=mediaspace>This text will be replaced</div>
<script type="text/javascript"> var s2 = new SWFObject(' 'http://www.the-slingshot.com/mediaplayer/player.swf','mp2','500','400','9'); s2.addParam('allowscriptaccess','always'); s2.addParam('allowfullscreen','true'); s2.addParam('wmode','transparent'); s2.addVariable('file','''http://www.the-slingshot.com/video/summitgeneral.flv'); s2.addVariable('image','Slingshooter.jpg'); s2.write('mediaspace'); </script>
<script type='text/javascript' src='swfobject.js'></script><div id='mediaspace'>This text will be replaced</div><script type='text/javascript'>
var s1 = new SWFObject('http://www.the-slingshot.com/mediaplayer/player.swf','mpl','470','320','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addVariable('file','http://www.the-slingshot.com/video/vasswastewater.flv');
s1.addVariable('title','The Moore County Water Summit');
s1.addVariable('backcolor','9999FF');
s1.write('mediaspace');
</script></div>Blocked code is:
<script type="text/javascript" src="swfobject.js"></script><div id=mediaspace2>This text will be replaced</div><script type="text/javascript">
var s2 = new SWFObject(' 'http://www.the-slingshot.com/mediaplayer/player.swf','mp2','500','400','9');
s2.addParam('allowscriptaccess','always');
s2.addParam('allowfullscreen','true');
s2.addParam('wmode','transparent');
s2.addVariable('file','''http://www.the-slingshot.com/video/summitgeneral.flv');
s2.addVariable('image','Slingshooter.jpg');
s2.write('mediaspace2');
</script>You need to make the 2nd div something different than the first. That is why my example had h1,h2,h3,etc.
I still cannot put two videos on one page. The host's help desk has yet to answer respond that it is possible to do. The first video posts fine and then there is a flash message calling the second post an unsafe operation that it (flash) has stopped. A simple workaround would be to just add another page, but that might make me lose viewers.
Do I need to put a second media player folder on the site for the second movie and point to it?
If you view the source of – http://www.the-slingshot.com/summit.html in Firefox, you will see that some of the code is in red. This is because you have copied non unicode quotes from somewhere, and it is breaking the player below the page.
I can show you a demo page of the code working. Please contact me at ethan [at] longtailvideo [dot] com for it.
I can not find anywhere on here to post a new problem. The only thing keeping me from buying the JW Playing is the following. My Email is dlmmartin@gmail.com.
---------------------------------------------------------------------- Simply put I have .flv (flash files) stored in inetpub/www directory. The link or reference to the files is stored in a SQL Server 2008 database, table and field. Users can use a search page to view specfic video based on the search criteria they enter. I use JW Player within a datalist to bring back the .flv dynamically and display multiple video files.
My Problem: When I use the Object/Embed code for the JW Player the videos display perfect and play correctly. However, I did more testing and the video does not play or work in browsers other than internet explorer. I tested Safari, Chrome and Firefox. I read that I should try the SWFobject method with the JW Player. I tried this and the video does play. However, only one video is displaying insted of four as in internet explorer. Is there a way to make the Object/Embed code work in other browsers or make SWFobject code display all of the video instead of one. I am listing code for both.
The ASP code isn't useful. You need to look at what is being delivered to the browser.
Ifbc.. so.addVariable('file', '<%# Eval("demolink") %>'); is delivering a valid playlist in one of the supported formats, the player will display & play all of the tracks in that playlist.
Perhaps calling your playlist-generating code from your browser, to see if you are getting a valid playlist, might be useful.
<div id="player1"><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div> <div id="player2"><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
<script type="text/javascript"> var s1 = new SWFObject('/Players/player.swf', 'ply1', '305', '229', '9.0.124', '#FFFFFF'); s1.addParam('allowscriptaccess', 'always'); s1.addParam('allowfullscreen', 'true'); s1.addParam('flashvars', 'controlbar=over&file=/Players/RTVOoost Beatrixschool Nijverdal.wmv_2.flv&image=/Players/princesbeatrixschool.jpg'); s1.write('player1'); var s1 = new SWFObject('/Players/player.swf', 'ply2', '305', '90', '9.0.124', '#FFFFFF'); s1.addParam('allowscriptaccess', 'always'); s1.addParam('allowfullscreen', 'true'); s1.addParam('flashvars', 'controlbar=over&file=/players/RTVOost radio.flv&image=radio.png'); s1.write('player2'); </script>
Pls i want to incorporate multiple videos to be viewed on one video screen at a click on the video link. Pls can you send me a code i can use to achieve this? Here my email ad: daygee_adeniji@yahoo.com.
so if i have multiple players on a page (is there a way to abuse javascript to generate unique and nice looking ids for the div id's and player names? like: player1, player2, ply1, ply2
or what is the correct approach to this (i'd like to make a separate player script, but with the ability to generate embed code for say wordpress...), please don't link me to any 3rd party hosted plugins, i need my scripts to work outside of internet as well.
p.s. or would a php like this be unique enough? bc.. <?php //creates a unique id with the 'div_' and 'ply_' prefix $a = uniqid(); $b = 'div_'.$a; $c = 'ply_'.$a;