Ask Your Question
1

Can we have an embed tag?

asked 2011-05-03 13:50:31 -0500

Benoit gravatar image

updated 2011-05-03 14:23:55 -0500

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.

edit retag flag offensive 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 gravatar imageEvgeny ( 2011-05-03 14:42:37 -0500 )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 gravatar imageEvgeny ( 2011-05-03 14:44:37 -0500 )edit
I would not like to use tags straight up in the input because non-computer savvy people will not do it.
Evgeny gravatar imageEvgeny ( 2011-05-03 15:28:23 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-05-05 23:19:54 -0500

Evgeny gravatar image
edit flag offensive delete link more

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 gravatar imageEvgeny ( 2011-05-05 23:20:52 -0500 )edit
You may have to "shift"-reload the doc link, because the docs are cached for a long time ahead.
Evgeny gravatar imageEvgeny ( 2011-05-05 23:31:55 -0500 )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 gravatar imageEdur ( 2012-09-18 05:48:31 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2011-05-03 13:50:31 -0500

Seen: 676 times

Last updated: May 05 '11