Open marcbenedi opened 9 months ago
![[myVideo.mp4]]
seems to default with loop enabled. is it possible to implement some way to disable it without using the video
HTML tag? Maybe something like ![[myVideo.mp4|noloop]]
![[myVideo.mp4]]
seems to default with loop enabled. is it possible to implement some way to disable it without using thevideo
HTML tag? Maybe something like![[myVideo.mp4|noloop]]
Hey @jericjan, good catch!
I hardcoded some attributes which should not be there. I updated the PR. Now the generated html only contains the following:
<video> <source src="example.mp4" alt="" type="video/mp4"></video>
To modify it, we can use the same "element annotation" feature used in images or others: https://mszturc.github.io/obsidian-advanced-slides/extend-syntax/classes/
For example:
![[example.mp4]] <!-- element data-autoplay -->
Generates
<video data-autoplay="true"> <source src="example.mp4" alt="" type="video/mp4"></video>
Hi,
I had been experiencing this issue for a while aswell #260 .
This PR adds support to videos included with obsidian syntax (which were not rendered before)
And copies the video file when exporting the slides. It also copies the file if it is embedded using html code. For example: