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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Benoit's avatar
875
Benoit
updated 13 years ago, asked 13 years ago

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 (13 years ago)
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 (13 years ago)
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 (13 years ago)
see more comments

1 Answer

0

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 13 years ago
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 (13 years ago)
You may have to "shift"-reload the doc link, because the docs are cached for a long time ahead.
Evgeny's avatar Evgeny (13 years ago)

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 (12 years ago)
see more comments