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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-04-2009, 10:10 AM   #1
InternetIsForPorn
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?
InternetIsForPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2009, 10:12 AM   #2
InternetIsForPorn
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&amp;logo=/misc/watermark2.png&amp;linkfromdisplay=true&amp;displa yheight=400&amp;backcolor=0x000000&amp;frontcolor= 0xCCCCCC&amp;lightcolor=0x557722&amp;autostart=tru e&amp;width=500&amp;height=400" width="500" height="400"></p>

Btw it's a cool player with those variables, might wanna try it
InternetIsForPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2009, 10:39 AM   #3
sortie
Confirmed User
 
sortie's Avatar
 
Industry Role:
Join Date: Mar 2007
Posts: 7,771
Quote:
Originally Posted by InternetIsForPorn View Post
Btw it's a cool player with those variables, might wanna try it
The player is most likely the problem.

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.
__________________
sortie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2009, 11:06 AM   #4
InternetIsForPorn
Confirmed User
 
Join Date: Sep 2007
Posts: 848
Quote:
Originally Posted by sortie View Post
The player is most likely the problem.

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.
The server is not the issue, we recently moved to a MUTHAFUCKA fast machine, the problem didn't disappear.

What flash player would you recommend though?
InternetIsForPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2009, 11:19 AM   #5
sortie
Confirmed User
 
sortie's Avatar
 
Industry Role:
Join Date: Mar 2007
Posts: 7,771
Quote:
Originally Posted by InternetIsForPorn View Post
The server is not the issue, we recently moved to a MUTHAFUCKA fast machine, the problem didn't disappear.

What flash player would you recommend though?
Without actually seeing what you have, I can't tell you more than that.

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.
__________________
sortie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2009, 12:44 PM   #6
InternetIsForPorn
Confirmed User
 
Join Date: Sep 2007
Posts: 848
Quote:
Originally Posted by sortie View Post
Without actually seeing what you have, I can't tell you more than that.

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.
that player didn't help, odd.

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= ?
InternetIsForPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2009, 12:55 PM   #7
sortie
Confirmed User
 
sortie's Avatar
 
Industry Role:
Join Date: Mar 2007
Posts: 7,771
Quote:
Originally Posted by InternetIsForPorn View Post
that player didn't help, odd.

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= ?
Forget about the youtube code because that is just data that the player uses
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.
__________________
sortie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2009, 01:16 PM   #8
InternetIsForPorn
Confirmed User
 
Join Date: Sep 2007
Posts: 848
Quote:
Originally Posted by sortie View Post
Forget about the youtube code because that is just data that the player uses
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.
The problem is obviously the conflict with the JavaScript (ajax powering the site) and the buffer that loads up in the player.

But for some reason this doesn't bother YouTubes player...
InternetIsForPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2009, 01:23 PM   #9
sortie
Confirmed User
 
sortie's Avatar
 
Industry Role:
Join Date: Mar 2007
Posts: 7,771
Quote:
Originally Posted by InternetIsForPorn View Post
The problem is obviously the conflict with the JavaScript (ajax powering the site) and the buffer that loads up in the player.

But for some reason this doesn't bother YouTubes player...
Because youtube player is totaly different.

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.
__________________
sortie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.