One problem with the method, especially for locally served videos, is that <iframe> has no access to <video> tag attributes, such as loop, autoplay, and controls. The only way to set them would be to create a '.html' file that just has the <video> tag with the attributes set, then use that as the source instead of the video directly. This of course isn't a problem when embedding content from external sites with custom players.
Kalcifer On Wed, Mar 13, 2019 at 2:08 AM TonyM <anthony.mus...@gmail.com> wrote: > Thanks for Sharing. > > On Wednesday, March 13, 2019 at 12:46:31 PM UTC+11, Kalcifer Kandari wrote: >> >> I created a workaround for media where the aspect ratio is known. The >> width can be set to 100%, and for 16:9, the height can be calculated using >> this CSS: height: calc( ( 100vw - <static_elements_width>px ) / 16 * 9);, >> where <static_elements_width> is the total width of elements that do not >> flex. @media would also need to be used as well for the sidebar >> breakpoint. >> >> Not sure how elegant this is, but wouldn't be difficult to incorporate >> into a macro where the CSS is inline and the aspect ratio is a parameter. >> >> Kalcifer >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/22I-kK08VeI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > tiddlywiki+unsubscr...@googlegroups.com. > To post to this group, send email to tiddlywiki@googlegroups.com. > Visit this group at https://groups.google.com/group/tiddlywiki. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/3d912d54-e727-4589-ba85-0fa17377c1a0%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/3d912d54-e727-4589-ba85-0fa17377c1a0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAF_%3DHkNMG5NGpgYxJ8c4CXhbKteShkcNoM2Bs64P4Akw_PhFhw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

