![]() |
Any embed video experts here? Why does this fuck up my site?
Ok, so I have a website that is fully ajax-based. The whole page is in ajax.
I can easily embed the videos from youtube, using a code like this <object width="425" height="344"><param name="movie" value="https://youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object> They load fine and I can navigate away from the page with that video while it's loading without any problems. But whenever I watch a user uploaded video, when it starts loading, you cannot navigate away from the page during the loading time. I have been trying to make a code similar to the one above, but for some odd reason I can't. The closest I got is this -- and it still doesn't let me navigate away from the page. <object width="425" height="344" type="application/x-shockwave-flash" data="/misc/flvplayer.swf" flashvars="file=/image.out?stream=<?=$vInfo[0]['filename']?>.flv"> <param name=?movie? value="/image.out?stream=<?=$vInfo[0]['filename']?>.flv"/> <param name=?allowFullScreen? value=?true? /> </object> Seems that I need to drop the flashvars string, but if I do so, the video doesn't load at all. Any ideas? |
Oh, and here is the embed code that is used right now (with same results - cannot navigate away from the page)
<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&displa yheight=400&backcolor=0x000000&frontcolor= 0xCCCCCC&lightcolor=0x557722&autostart=tru e&width=500&height=400" width="500" height="400"></p> Btw it's a cool player with those variables, might wanna try it :) |
Quote:
I've built a few flv players and they all can do things differently. I would guess that your user uploaded video is being converted to flv at a higher quality and your server may stream too slow and the player is not handling it. Put the user uploaded vid on a fast server and see if it works better. If it does then redo the user uploaded video at a low quality on your server. Try a different player. |
Quote:
What flash player would you recommend though? |
Quote:
The autostart code inside the player could be the problem. The reason I started to build flv players is because I could not find one that worked like I wanted. People seem to like the free JW player, so maybe try that one. http://www.longtailvideo.com/players/ If that doesn't work then you may need to go custom. |
Quote:
the youtube embed codes have 2 identical urls which lead to the movie page itself. is there any way I can make a code similar to that one? without having to use the flashvars=file= ? |
Quote:
to do what it is programmed to do. You can't make the player do what it is not programmed to do by changing the html. Also, there is no proof that the problem is not something else on the page since I haven't seen it. |
Quote:
But for some reason this doesn't bother YouTubes player... |
Quote:
A flv player is not really a device; it's a computer program. It is built with a programming language called action script. The programmer can make a bad player that kills your site/browser. The programmer has control over the buffering/etc in the action script. How the programmer chooses to do this can have an impact on the player working. The player could be badly coded and cooking your CPU and so you can't leave the page. |
All times are GMT -7. The time now is 08:28 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123