Q: how to add source tag to video tag based on html5 backend

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Q: how to add source tag to video tag based on html5 backend

sibalashi
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

 
Reply | Threaded
Open this post in threaded view
|

Re: Q: how to add source tag to video tag based on html5 backend

sibalashi
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.
Reply | Threaded
Open this post in threaded view
|

Re: Q: how to add source tag to video tag based on html5 backend

mojavelinux
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:

++++
 <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.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Q-how-to-add-source-tag-to-video-tag-based-on-html5-backend-tp3664p3665.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Q: how to add source tag to video tag based on html5 backend

mojavelinux
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:
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:

++++
 <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.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Q-how-to-add-source-tag-to-video-tag-based-on-html5-backend-tp3664p3665.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



--
Reply | Threaded
Open this post in threaded view
|

Re: Q: how to add source tag to video tag based on html5 backend

sibalashi
Reply | Threaded
Open this post in threaded view
|

Re: Q: how to add source tag to video tag based on html5 backend

mojavelinux
Administrator
Super! Thanks!

-Dan

On Thu, Aug 13, 2015 at 11:14 AM, sibalashi [via Asciidoctor :: Discussion] <[hidden email]> wrote:
OK,Done.

https://github.com/asciidoctor/asciidoctor/issues/1463

Thank you.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Q-how-to-add-source-tag-to-video-tag-based-on-html5-backend-tp3664p3668.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--