citcit / autoembed

Automatically exported from code.google.com/p/autoembed
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Redirect (proxy) support (src override) #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is more of an experiment, than an actual issue or request, and am not 
sure this would work at _all_.

Let's say you want to track the clicks of the videos you are embedding.  To 
track this click, you can do so by having the movie/flv source be 
overridden, and the actual source url passed as a parameter.

For example, on yourdomain.com, you are embedding videos from YouTube.  
Instead of having:

{{{
src="http://youtube.com/v/1234"
}}}

You can do override the src attribute with:

{{{
$AE->addProxyRedirectUrl('http://domain.com/redirect.php?src=$src');
}}}

redirect.php could track the click and redirect the visitor to the src url, 
which would be passed in.

I'm not sure the best way to set the param to use, whether it's hardcoded 
as a 'redirect_to' param, or the ability to set one dynamically, like the 
example above.

This isn't tested, and not sure it would work - but theoretically it 
should.

Original issue reported on code.google.com by jhi...@gmail.com on 7 Jan 2009 at 9:08

GoogleCodeExporter commented 8 years ago

Original comment by jhi...@gmail.com on 11 Feb 2009 at 10:45