Ok, my website has these code for video output THEY DO NOT WORK THE WAY I WANT THEM TO. They freeze up my javascript (my website is all in ajax) and I can't do anything while the videos are loading. Code variation 1 <iframe src="/ajax.moduled.php?option=video&name=<?=$vInfo[0]['filename']?>.flv" width="635" height="410" frameborder="0">Browser does not support iframes</iframe> Code variation 2 <div id="videoLocation" class="hid"> /image.out?stream=<?=$vInfo[0]['filename']?>.flv </div> What I NEED is to turn this code into a youtube style embed, because youtube style embeds work perfectly on my site. How it SHOULD look (or similar to this one) <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object> I tried copy/pasting the source links, but didn't really help. This is a quick $10 for someone who knows what's going on. PM me for additional info.
try this <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/<?=$vInfo[0]['filename']?>&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/<?=$vInfo[0]['filename']?>&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
Then you need some mod_rewrite to make the url valid and flash video player to play your .Flv files. You should embed this flash video player, not the flv itself.
yes you need a flash player and then embed it in flash player chmdznr gave you the right solution and hence he need to be paid! Regards Alex
Give me the code that will WORK and I will pay you! My flash player location is "/misc/flvplayer.swf" if that helps.
Update, here is the full source code of what I have right now <p id="videoPlayer"><embed type="application/x-shockwave-flash" src="/misc/flvplayer.swf" style="" id="single" name="single" quality="high" allowfullscreen="false" flashvars="file=/image.out?stream=10371.1231083501.flv&logo=/misc/watermark2.png&linkfromdisplay=true&displayheight=400&backcolor=0x000000&frontcolor=0xCCCCCC&lightcolor=0x557722&autostart=true&width=500&height=400" width="500" height="400"></p>
Ok, here is what I came up with and it works... but still for some reason freezes my ajax site <object width="425" height="344"><param name="movie" value="/image.out?stream=<?=$vInfo[0]['filename']?>.flv"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="/misc/flvplayer.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344" flashvars="file=/image.out?stream=<?=$vInfo[0]['filename']?>.flv"></embed></object> While the common youtube embed code doesn't free my ajax site: <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object> what's up with that?
This is the best I can do: 1. try to change your flv player to jw flv player (open source). Download here: http://www.longtailvideo.com/players/jw-flv-player/ 2. the implementation is quite simple, for example (open samurai_jack_opening.flv): <embed src="player.swf" width="300" height="300" allowscriptaccess="always" allowfullscreen="true" flashvars="file=samurai_jack_opening.flv&autostart=false" /> Code (markup): Demo : http://www.vrank.org/flv If it work, I'm I deserve to get the $10?
Ok, update of the status of this issue. It seems that my site freezes up whenever I point the flv source to the actual source (direct link) of the flv. This is not a problem with YouTube videos as they do not point directly to the flv. Alternate solution -- a player that doesn't conflict with javascript. Can anyone find this for me?
<embed src="http://www.longtailvideo.com/files/player.swf?file=Here your file link" width="500" height="300" > This will help you! just adjust size!
Ok, so apperently the problem isn't in the embed. It's in my ajax config file. Located here - http://gotgame.lv//misc/site.js Can anyone help ?
How about this flash video player maker? I often use it to put training videos to our support site, and it works well. But I don't know if it will conflict with javascript or not. Hopefully it can help you.