First time here? Check out the FAQ!
1

Can we have an embed tag?

Does askbot support the embedded video tag? We tried the <embed...> tag, but the text showed up, not the player.

Note that in the preview window, the video actually showed up.

Benoit's avatar
875
Benoit
updated 2011-05-03 14:23:55 -0600, asked 2011-05-03 13:50:31 -0600
edit flag offensive 0 remove flag close merge delete

Comments

OK, one way is to add markdown extension that reconizes links to video hosting services, you'd just need to copy-past the youtube, etc. url and it would render into the embedded object tag. Uploading videos is another possibility, but that requires being able to stream them.
Evgeny's avatar Evgeny (2011-05-03 14:42:37 -0600) edit
File askbot/utils/markup.py defines the extension for urls, something along the lines will be required to support more specifically defined urls (youtube, blip.tv videos and such)
Evgeny's avatar Evgeny (2011-05-03 14:44:37 -0600) edit
I would not like to use tags straight up in the input because non-computer savvy people will not do it.
Evgeny's avatar Evgeny (2011-05-03 15:28:23 -0600) edit
add a comment see more comments

1 Answer

0
Evgeny's avatar
13.2k
Evgeny
answered 2011-05-05 23:19:54 -0600
edit flag offensive 0 remove flag delete link

Comments

First pass done. Either use image button or just drop in a YouTube url. Only works for youtube so far. Also, a bit of custom installation is required, as there is a forked module to use http://askbot.org/doc/optional-modules.html#embedding-video.
Evgeny's avatar Evgeny (2011-05-05 23:20:52 -0600) edit
You may have to "shift"-reload the doc link, because the docs are cached for a long time ahead.
Evgeny's avatar Evgeny (2011-05-05 23:31:55 -0600) edit

Just for Info. The old embed method (objects) is no more visible on the youtube video pages, (in germany) are only the new iframe method available from the embed code generator (html5 function included). The iframe codes doesn't work, in the live-preview windows it works, in the post itself the "<" and ">" are encoded, so you see only the embed code, not the video. :)

Edur's avatar Edur (2012-09-18 05:48:31 -0600) edit
add a comment see more comments