You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Viral Embed - fail over link? Created Sep 3, 2010

This thread is solved

Views: 3940     Replies: 6     Last reply Sep 30, 2010  
You must login first before you can use this feature

ClausP

Posts: 37

Registered:
Aug 20, 2010

Viral Embed - fail over link?

Posted: Sep 3, 2010

Hi,

Is it possible to config the viral plugin, so the embed code also contains a link back to the page for both SEO and "no flash" reasons?

The current code generates something like this

  <object ...>
   <param value ... />
   <embed ... />
  </object>

It would be great if it could include a link too, like:

  <object ...>
    <param ... />
    <embed ....>
      <a href="url" >Link text</a>
    </embed>
  </object>

Kind regards
Claus

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» Viral Embed - fail over link?

Posted: Sep 7, 2010

Reply to: Viral Embed - fail over link?, from ClausP
Sorry this is not supported currently. Can there be an anchor tag inside the embed tag? Is this a common feature in embed codes?

ClausP

Posts: 37

Registered:
Aug 20, 2010

» » Viral Embed - fail over link?

Posted: Sep 7, 2010

Reply to: » Viral Embed - fail over link?, from Anssi
Well, it is common to use tags within each other where the browser will skip unsupported tags until it finds a supported tag.
That is the way HTML5 video fallback is supposed to work:

<video>
<object>
<embed>

</embed>
</object>
</video>

Or the other way around.
You can see an example if you scroll a bit down here:
http://dev.w3.org/html5/spec/Overview.html#the-object-element

They use an outer flash object, that fallback to html5 video tag and finally a normal link.

That can be optimized further by checking supported video formats too, because in case you use html5 Video as default and only have mp4 videos, then you will get in trouble with firefox that only support ogg.
http://diveintohtml5.org/detect.html#video-formats

/Claus

ClausP

Posts: 37

Registered:
Aug 20, 2010

» » » Viral Embed - fail over link?

Posted: Sep 7, 2010

Reply to: » » Viral Embed - fail over link?, from ClausP
The forum software removed the a href part apparently. But try to take a look at the w3.org example, which also shows the use of a link as the last fallback.

/Claus

ClausP

Posts: 37

Registered:
Aug 20, 2010

» » » » Viral Embed - fail over link?

Posted: Sep 8, 2010

Reply to: » » » Viral Embed - fail over link?, from ClausP
Is this something you can implement? It is very important for us.

/Claus

ClausP

Posts: 37

Registered:
Aug 20, 2010

» » » » » Viral Embed - fail over link?

Posted: Sep 30, 2010

Reply to: » » » » Viral Embed - fail over link?, from ClausP
Implemented it myself, and it has now been integrated into the module, thanks to Anssi.

The embed module now generate code that fails over to html5 video tag and after that an "a href" link back to the site.

/Claus

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » » » Viral Embed - fail over link?

Posted: Sep 30, 2010

Reply to: » » » » » Viral Embed - fail over link?, from ClausP
This enhancement is in this dev version ready for testing: http://flowplayer-releases.s3.amazonaws.com/info/dist.html