GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Any embed video experts here? Why does this fuck up my site? (https://gfy.com/showthread.php?t=879416)

InternetIsForPorn 01-04-2009 10:10 AM

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 01-04-2009 10:12 AM

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 :)

sortie 01-04-2009 10:39 AM

Quote:

Originally Posted by InternetIsForPorn (Post 15280314)
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.

InternetIsForPorn 01-04-2009 11:06 AM

Quote:

Originally Posted by sortie (Post 15280370)
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?

sortie 01-04-2009 11:19 AM

Quote:

Originally Posted by InternetIsForPorn (Post 15280436)
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.

InternetIsForPorn 01-04-2009 12:44 PM

Quote:

Originally Posted by sortie (Post 15280465)
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= ?

sortie 01-04-2009 12:55 PM

Quote:

Originally Posted by InternetIsForPorn (Post 15280716)
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.

InternetIsForPorn 01-04-2009 01:16 PM

Quote:

Originally Posted by sortie (Post 15280757)
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...

sortie 01-04-2009 01:23 PM

Quote:

Originally Posted by InternetIsForPorn (Post 15280869)
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.


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