Hi everyone :),
I would like to create slides for a presentation with typst. But I need some interactive elements like embedding videos with playback controls. A already asked about this some time ago, but back then there was no real solution for this (except for adding gifs, which is not sufficient for my use-case).
I see that touying now has exporter to impress.js. Since impress.js supports videos, I was wondering if this feature could be somehow used from typst.
Another nice lib for slides is sli.dev, which even has a typst plugin to render typst content on a slide (also sli.dev has nicer controls compared to impress.js). But I would like to have the typst integration the other way around (typst → sli.dev) just like the touying to impress.js exporter. Is there a simple way to achieve this?
Thanks @Andrew,
it seems that there is currently no solution for this (according to the issue).
May it be possible to add custom svg elements to the typst svg output?
This way the following svg part could could be added for videos:
The problem is that out of security reasons, typst base64 encodes all embedded svgs, so that the foreignObject does not work. Thus, I created a python script that decodes all the svg elements. Then it kind of works.
But I think this is not a good solution.
I guess using html export would be better.
Therefore, I would need to wrap every page into a html.frame but ignore some manuell definiert html elements on a page (which should be directly included into the html, e.g. the video elements). But I am not sure how to achive this behaviour.