citcit / autoembed

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

Settable Params and basic usage #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here is how I imagine the ideal usage scenario.

New instance of the class...

{{{
$AE = new AutoEmbed();
}}}

I want it to parse a url that contains a video.

{{{
$AE->parseUrl('http://youtube.com/etc/etc');
}}}

I want to be able to view the flash vars in an array and would expect to 
see all media related params. (autoplay, quality, src, wmode, etc)

{{{
var_dump($AE->getParams());
}}}

I want to be able to change some params.

{{{
$AE->setParam('wmode','transparent');
$AE->setParam('autoplay','false');
}}}

Now I should be able to see my updated params.

{{{
var_dump($AE->getParams());
}}}

Finally, let's embed this on a page.

{{{
print $AE->getEmbedCode();
}}}

And do it again!

{{{
$AR->parseUrl('http://videoplace.net/newvideo');
}}}

Original issue reported on code.google.com by jhi...@gmail.com on 31 Dec 2008 at 8:54

GoogleCodeExporter commented 8 years ago

Original comment by jhi...@gmail.com on 31 Dec 2008 at 8:56

GoogleCodeExporter commented 8 years ago

Original comment by phpu...@gmail.com on 2 Jan 2009 at 8:11

GoogleCodeExporter commented 8 years ago
Closing this.  API is solid IMO.

Original comment by jhi...@gmail.com on 11 Jan 2009 at 7:11