vembedr icon indicating copy to clipboard operation
vembedr copied to clipboard

Embed local file

Open ijlyttle opened this issue 5 years ago • 4 comments

@tungmilan sent along this code (thanks!) for embedding a local file:

<iframe width="720" height="480" src="`r video_files[1]`" frameborder="0" allowfullscreen align="center"></iframe>

ijlyttle avatar Jan 06 '20 20:01 ijlyttle

Thanks for opening this! I was wondering if it's possible to do this in a loop as well. Something like src="`r video_files[i]` instead of hard-coding video_files[1]

tungttnguyen avatar Jan 06 '20 22:01 tungttnguyen

Will keep that in mind!

ijlyttle avatar Jan 07 '20 02:01 ijlyttle

Would be great if there is also an option to somehow attach the video files to the html output so it would work on other PCs

tungttnguyen avatar Jan 07 '20 17:01 tungttnguyen

I wonder if attaching such a file as an htmldependency might work.

ijlyttle avatar Jan 07 '20 18:01 ijlyttle