Re: [O] Link type for HTML5 videos

2017-01-24 Thread Rasmus
Arun Isaac  writes:

> It would be nice to have a link type to export HTML5 videos. Currently,
> the only way to insert videos is to use the #+BEGIN_video, #+END_video
> block with literal #+HTML in them. This seems a little kludgy. Thoughts?

I think this is a good idea.  You can check if HTML5 is expected output.
IMO, it's not much different from doing the "right thing" for tikz files
in LaTeX.

Rasmus

-- 
This space is left intentionally blank




Re: [O] Link type for HTML5 videos

2017-01-22 Thread Arun Isaac

I was thinking of something like

#+ATTR_HTML: controls
#+POSTER: quadratic.png
video:quadratic.webm

exporting to the following HTML.



> That looks too rich for a link to me unless alot of it is always the
> same, or derived, e.g. the id tags.

It is quite rich. But, note that even img tags, especially with the
newer 'srcset' and 'sizes' attributes, are quite rich. Yet, we use links
to insert inline images. If videos cannot be properly handled by links,
neither can images.

> Something like this is what a link would look like:
>
> video:quadratic.webm
>
> and the html export could certainly generate what you put in the html
> block below.
>
> See
> http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/
> for how to make a link, try it and report back if it is useful.

I can use the new link features to develop something that works for my
particular use case. No issues with that. But, I was wondering if a more
general video link type can be developed for inclusion into org mode itself.


signature.asc
Description: PGP signature


Re: [O] Link type for HTML5 videos

2017-01-22 Thread Scott Randby
On 01/22/2017 04:59 PM, John Kitchin wrote:
> That looks too rich for a link to me unless alot of it is always the
> same, or derived, e.g. the id tags.

That is why I said that agreeing on the default HTML export for the link
type will be difficult.

Scott

> 
> Something like this is what a link would look like:
> 
> video:quadratic.webm
> 
> and the html export could certainly generate what you put in the html
> block below.
> 
> See
> http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/
> for how to make a link, try it and report back if it is useful
> 
> Scott Randby writes:
> 
>> On 01/22/2017 01:22 PM, John Kitchin wrote:
>>> What would these links look like? And what should they render too?
>>
>> I wasn't suggesting support for the idea, I was just suggesting that it
>> makes sense to to both video and audio if they are to be done.
>>
>> However, I currently use export blocks to do video and audio export. I
>> don't have a problem with continuing that practice since it works well
>> for me. Here are two examples:
>>
>> #+begin_export html
>> 
>>   > id="audio-tag"
>> controls
>> preload="metadata">
>> 
>> Your browser does not support the audio tag.
>>   
>> 
>> #+end_export
>>
>> #+begin_export html
>> 
>>   > id="video-tag"
>> src="quadratic.webm"
>> controls
>> preload="metadata">
>> Your browser does not support the video tag.
>>   
>> 
>> #+end_export
>>
>> Styling is done via a CSS file.
>>
>> It might be difficult to agree on what a video or audio link type
>> renders to by default.
>>
>> Scott
>>
>>>
>>>
>>> On Sun, Jan 22, 2017 at 1:09 PM Scott Randby >> > wrote:
>>>
>>> On 01/22/2017 12:15 PM, Arun Isaac wrote:
>>>
>>> >
>>>
>>> > It would be nice to have a link type to export HTML5 videos. 
>>> Currently,
>>>
>>> > the only way to insert videos is to use the #+BEGIN_video, #+END_video
>>>
>>> > block with literal #+HTML in them. This seems a little kludgy. 
>>> Thoughts?
>>>
>>>
>>>
>>> If there is to be a link type to videos, then I think there should be
>>>
>>> one for audio too.
>>>
>>>
>>>
>>> Scott Randby
>>>
>>>
>>>
>>> >
>>>
>>> > Thanks,
>>>
>>> > Arun Isaac.
>>>
>>> >
>>>
>>>
>>>
> 
> 



Re: [O] Link type for HTML5 videos

2017-01-22 Thread John Kitchin
That looks too rich for a link to me unless alot of it is always the
same, or derived, e.g. the id tags.

Something like this is what a link would look like:

video:quadratic.webm

and the html export could certainly generate what you put in the html
block below.

See
http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/
for how to make a link, try it and report back if it is useful.

Scott Randby writes:

> On 01/22/2017 01:22 PM, John Kitchin wrote:
>> What would these links look like? And what should they render too?
>
> I wasn't suggesting support for the idea, I was just suggesting that it
> makes sense to to both video and audio if they are to be done.
>
> However, I currently use export blocks to do video and audio export. I
> don't have a problem with continuing that practice since it works well
> for me. Here are two examples:
>
> #+begin_export html
> 
>id="audio-tag"
> controls
> preload="metadata">
> 
> Your browser does not support the audio tag.
>   
> 
> #+end_export
>
> #+begin_export html
> 
>id="video-tag"
> src="quadratic.webm"
> controls
> preload="metadata">
> Your browser does not support the video tag.
>   
> 
> #+end_export
>
> Styling is done via a CSS file.
>
> It might be difficult to agree on what a video or audio link type
> renders to by default.
>
> Scott
>
>> 
>> 
>> On Sun, Jan 22, 2017 at 1:09 PM Scott Randby > > wrote:
>> 
>> On 01/22/2017 12:15 PM, Arun Isaac wrote:
>> 
>> >
>> 
>> > It would be nice to have a link type to export HTML5 videos. Currently,
>> 
>> > the only way to insert videos is to use the #+BEGIN_video, #+END_video
>> 
>> > block with literal #+HTML in them. This seems a little kludgy. 
>> Thoughts?
>> 
>> 
>> 
>> If there is to be a link type to videos, then I think there should be
>> 
>> one for audio too.
>> 
>> 
>> 
>> Scott Randby
>> 
>> 
>> 
>> >
>> 
>> > Thanks,
>> 
>> > Arun Isaac.
>> 
>> >
>> 
>> 
>> 


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Link type for HTML5 videos

2017-01-22 Thread Scott Randby
On 01/22/2017 01:22 PM, John Kitchin wrote:
> What would these links look like? And what should they render too?

I wasn't suggesting support for the idea, I was just suggesting that it
makes sense to to both video and audio if they are to be done.

However, I currently use export blocks to do video and audio export. I
don't have a problem with continuing that practice since it works well
for me. Here are two examples:

#+begin_export html

  

Your browser does not support the audio tag.
  

#+end_export

#+begin_export html

  
Your browser does not support the video tag.
  

#+end_export

Styling is done via a CSS file.

It might be difficult to agree on what a video or audio link type
renders to by default.

Scott

> 
> 
> On Sun, Jan 22, 2017 at 1:09 PM Scott Randby  > wrote:
> 
> On 01/22/2017 12:15 PM, Arun Isaac wrote:
> 
> >
> 
> > It would be nice to have a link type to export HTML5 videos. Currently,
> 
> > the only way to insert videos is to use the #+BEGIN_video, #+END_video
> 
> > block with literal #+HTML in them. This seems a little kludgy. Thoughts?
> 
> 
> 
> If there is to be a link type to videos, then I think there should be
> 
> one for audio too.
> 
> 
> 
> Scott Randby
> 
> 
> 
> >
> 
> > Thanks,
> 
> > Arun Isaac.
> 
> >
> 
> 
> 



Re: [O] Link type for HTML5 videos

2017-01-22 Thread John Kitchin
What would these links look like? And what should they render too?


On Sun, Jan 22, 2017 at 1:09 PM Scott Randby  wrote:

> On 01/22/2017 12:15 PM, Arun Isaac wrote:
>
> >
>
> > It would be nice to have a link type to export HTML5 videos. Currently,
>
> > the only way to insert videos is to use the #+BEGIN_video, #+END_video
>
> > block with literal #+HTML in them. This seems a little kludgy. Thoughts?
>
>
>
> If there is to be a link type to videos, then I think there should be
>
> one for audio too.
>
>
>
> Scott Randby
>
>
>
> >
>
> > Thanks,
>
> > Arun Isaac.
>
> >
>
>
>
>


Re: [O] Link type for HTML5 videos

2017-01-22 Thread Scott Randby
On 01/22/2017 12:15 PM, Arun Isaac wrote:
> 
> It would be nice to have a link type to export HTML5 videos. Currently,
> the only way to insert videos is to use the #+BEGIN_video, #+END_video
> block with literal #+HTML in them. This seems a little kludgy. Thoughts?

If there is to be a link type to videos, then I think there should be
one for audio too.

Scott Randby

> 
> Thanks,
> Arun Isaac.
> 



[O] Link type for HTML5 videos

2017-01-22 Thread Arun Isaac

It would be nice to have a link type to export HTML5 videos. Currently,
the only way to insert videos is to use the #+BEGIN_video, #+END_video
block with literal #+HTML in them. This seems a little kludgy. Thoughts?

Thanks,
Arun Isaac.


signature.asc
Description: PGP signature