supernginx / flowplayer-core

Automatically exported from code.google.com/p/flowplayer-core
0 stars 0 forks source link

Viral Videos: Custom Embed Code #432

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A user can get an embed coded via the viral videos plugin. 

I'd like to use a different embed code (iframe) for a number of reasons (can 
have transparent fallback to HTML5, my cms uses iframes and I want to hand out 
the same embed code everywhere, iframes enable me to put content/code 
below/above the actual player, ...).

My idea is a new config option where I pass in the html snippet which should be 
shown. The snippet may contain placeholders so the user can still choose the 
dimensions.

I implemented this like that:
viral: {
    …
    embed: {
        embedTemplate: '…'
    }
}

An example embed code is:
<iframe width="[width]" height="[height]"frameborder="0" 
src="…">[fallback]</iframe>'

Controls for attributes which have no placeholders are hidden from the user.

I believe there is more interest in this change, for example there is a forum 
post which predates my work: http://flowplayer.org/forum/5/66016.

If there is interest, I'd be willing to send a patch for inclusion into the 
viral videos plugin.

Original issue reported on code.google.com by dani...@electroteque.org on 29 Nov 2011 at 11:41

GoogleCodeExporter commented 9 years ago
Just for the record: this ticket is a clone of 
http://code.google.com/p/flowplayer-plugins/issues/detail?id=21 by danielr

Original comment by felix.sc...@oss.schwarz.eu on 29 Nov 2011 at 9:13

GoogleCodeExporter commented 9 years ago
I'd be interested in this feature - have you sent a patch? Cheers..

Original comment by jbrob...@gmail.com on 5 Jan 2012 at 5:30