Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi :
The html5's video tag is like the something below: <video width="320" height="240" autoplay> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> But Asciidoctor's default html5 backend converts video tag to the somethong below: <video src="http://xxxxx/video/word_5_1_1.mp4" width="600" height="400" controls=""> Your browser does not support the video tag. </video> How can do add source tags in the video tag by adding attributes in video macro? Thanks |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The solution I used currently is useing passthough macro:
++++ <video width="320" height="240" autoplay> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> ++++ But I still want use the video macro to do the above something. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
I think this is a great opportunity for an enhancement to the video macro. If the target is a comma-separated list of video paths, we can use the nested source elements instead of the top level src attribute. For example: video::movie.mp4,movie.ogg[] We can auto-detect the type from the file extension. Would you be willing to file an enhancement request in the issue tracker? Cheers, -Dan On Wed, Aug 12, 2015 at 10:02 PM, sibalashi [via Asciidoctor :: Discussion] <[hidden email]> wrote: The solution I used currently is useing passthough macro: ... [show rest of quote] Dan Allen | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
In reply to this post by sibalashi
Keep in mind, you can get it sooner by using a custom template. For reference, see: Cheers, -Dan On Thu, Aug 13, 2015 at 2:05 AM, Dan Allen <[hidden email]> wrote:
... [show rest of quote] Dan Allen | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Super! Thanks! -Dan On Thu, Aug 13, 2015 at 11:14 AM, sibalashi [via Asciidoctor :: Discussion] <[hidden email]> wrote: OK,Done. Dan Allen | http://google.com/profiles/dan.j.allen |
Free forum by Nabble | Edit this page |