On Friday, April 8, 2011 1:04:36 PM UTC-4, 黄祥 wrote:
>
> actually, my intention is to embed audio or video file into web2py apps,
> i've tried embed and object but it's not going to work, so that i tried to
> use html 5 tags audio and video, but got the same result, i ever posted to
> this forum too about my detail error using embed tag. pardon me, what do u
> mean with TAG.video() is it same like {{=TAG.video()}} ?
> do you have any documentation for that tag?
>
There is no specific TAG.video tag. Rather, the TAG helper can be used to
create custom tags -- so TAG.video() would be a custom tag. This is
documented here: http://web2py.com/book/default/chapter/05#Custom-Helpers
web2py doesn't specifically support or not support embedding video or HTML5
tags -- those are browser issues. You can put any HTML/CSS you want in your
web2py view files -- whether it works or not will depend on the browser, not
web2py. Note, though, that you do NOT have to build all of your HTML using
the web2py HTML helpers -- instead, you can simply include regular HTML
markup in your views (interspersed with Python code, as explained in the
book).
Anthony