![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Sep 2007
Posts: 848
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2007
Posts: 848
|
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
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.
__________________
![]() ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Sep 2007
Posts: 848
|
Quote:
What flash player would you recommend though? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
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.
__________________
![]() ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Sep 2007
Posts: 848
|
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= ? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
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.
__________________
![]() ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Sep 2007
Posts: 848
|
Quote:
But for some reason this doesn't bother YouTubes player... |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
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.
__________________
![]() ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |