Jump to content

Help with avatar type system for video website.


Whytze

Recommended Posts

I need help for my video website related to adding the videos. Each video has a screenshot and the video itself following it. What I need help with is saving the file on my website if its not hosted under root (ex www.mywebsite.com/filefile). Example, if someone posts a link from website xyz in the form, then the website automatically downloads a copy into the database (Screenshot[picture] and the video itself). I've seen this work with avatar systems all the time on invision.
Ok, gotcha. In regards to the video types...hardly anyone uses those formats anymore on sites showcasing mass amounts of vids. Too big. The .FLV format is taking over.

Let's take your concept and break it down a bit. The 'screenshot' for a typical YouTube preview/thumbnail has a location and reference like this:

[quote]http://sjl-static6.sjl.youtube.com/vi/JzqumbhfxRo/2.jpg[/quote]

Which is a hyperlink pointing to this:

[quote]http://www.youtube.com/watch?v=JzqumbhfxRo[/quote]

And, if they wanted to embed that video on your site they'd use this link:

[quote]<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/JzqumbhfxRo"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/JzqumbhfxRo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>[/quote]

The common ID in all this is the 'JzqumbhfxRo' identifier. I can't think of a way that would strip out all the other characters and isolate or even identify that part of the hyperlink. Some heavy duty use of regular expressions is the only thing I can imagine would work.

If your goal is to snag the picture then assuming your 'user' enters the embed code above. You would need to isolate the ID part and then surround it by the necessary code to identify it on their site (which could be totally random as well without a specific pattern) and then somehow copy the file to a folder on your site, make a reference to it for that particular user/video upload. Maybe i'm looking at this wrong but that appears to be the challenge.
  • 2 weeks later...
[quote author=simcoweb link=topic=115418.msg470105#msg470105 date=1163870211]
Ok, gotcha. In regards to the video types...hardly anyone uses those formats anymore on sites showcasing mass amounts of vids. Too big. The .FLV format is taking over.

Let's take your concept and break it down a bit. The 'screenshot' for a typical YouTube preview/thumbnail has a location and reference like this:

[quote]http://sjl-static6.sjl.youtube.com/vi/JzqumbhfxRo/2.jpg[/quote]

Which is a hyperlink pointing to this:

[quote]http://www.youtube.com/watch?v=JzqumbhfxRo[/quote]

And, if they wanted to embed that video on your site they'd use this link:

[quote]<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/JzqumbhfxRo"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/JzqumbhfxRo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>[/quote]

The common ID in all this is the 'JzqumbhfxRo' identifier. I can't think of a way that would strip out all the other characters and isolate or even identify that part of the hyperlink. Some heavy duty use of regular expressions is the only thing I can imagine would work.

If your goal is to snag the picture then assuming your 'user' enters the embed code above. You would need to isolate the ID part and then surround it by the necessary code to identify it on their site (which could be totally random as well without a specific pattern) and then somehow copy the file to a folder on your site, make a reference to it for that particular user/video upload. Maybe i'm looking at this wrong but that appears to be the challenge.
[/quote]
Appriciate the help but im working with old styles suck as.avi and .mpg

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.