From f1183cbf9f212a984e170b7b47f3a837b71b0f37 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 13 Sep 2022 20:43:27 +0000 Subject: media4svg (13sep22) git-svn-id: svn://tug.org/texlive/trunk@64377 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/media4svg/ChangeLog | 8 +- Master/texmf-dist/doc/latex/media4svg/README.txt | 30 +- .../latex/media4svg/example/beamer-example-1.svg | 70 ++-- .../latex/media4svg/example/beamer-example-2.svg | 29 +- .../latex/media4svg/example/beamer-example-3.svg | 61 +++- .../latex/media4svg/example/beamer-example-4.svg | 172 +++++----- .../doc/latex/media4svg/example/beamer-example.tex | 99 ++++-- .../texmf-dist/tex/latex/media4svg/media4svg.sty | 356 +++++++++++++-------- 8 files changed, 508 insertions(+), 317 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/media4svg/ChangeLog b/Master/texmf-dist/doc/latex/media4svg/ChangeLog index 8a3b552bbfa..bd283d40947 100644 --- a/Master/texmf-dist/doc/latex/media4svg/ChangeLog +++ b/Master/texmf-dist/doc/latex/media4svg/ChangeLog @@ -1,3 +1,7 @@ +2022-09-12 + * v0.10 + * new: youtube support + 2022-08-12 * v0.9 * improvement: script `media4svg.lua' for base64 encoding of files now @@ -11,10 +15,6 @@ * v0.7 * fix: let PgUp/PgDown events propagate to parent -2022-05-18 - * v0.7 - * fix: let PgUp/PgDown events propagate to parent - 2021-10-19 * v0.6 * fix: non-conforming SVG id attribute values diff --git a/Master/texmf-dist/doc/latex/media4svg/README.txt b/Master/texmf-dist/doc/latex/media4svg/README.txt index 6859274667e..79485e0fe22 100644 --- a/Master/texmf-dist/doc/latex/media4svg/README.txt +++ b/Master/texmf-dist/doc/latex/media4svg/README.txt @@ -1,7 +1,7 @@ ===================================== The `media4svg' LaTeX Package - Version 0.9, 2022/08/12 + Version 0.10, 2022/09/12 https://gitlab.com/agrahn/media4svg @@ -12,10 +12,10 @@ 1. Introduction =============== -This package implements an interface for embedding video and audio files in SVG -(Scalable Vector Graphics) output. SVG with embedded media is very portable, -as it is supported by all modern Web browsers across a variety of operating -systems and platforms, including portable devices. +This package implements an interface for embedding video and audio files and +the YouTube player in SVG (Scalable Vector Graphics) output. SVG with embedded +media is very portable, as it is supported by all modern Web browsers across a +variety of operating systems and platforms, including portable devices. The most portable media formats are as follows: @@ -64,8 +64,8 @@ information. 2. Example ========== -An example presentation with an embedded video file and a streamed video can be -found here: +An example presentation with an embedded local video file as well as with video +streamed from a URL and a YouTube player can be found here: http://mirrors.ctan.org/macros/latex/contrib/media4svg/example/beamer-example-1.svg @@ -90,14 +90,18 @@ The package itself is loaded with Package options are: `draft', `final', `autoplay', `loop', `controls', `mimetype', `width', `height', `totalheight', `keepaspectratio', `scale', -`url', `embed'. They have the same meaning as the command options explained -below, but are applied globally. +`url', `youtube`, `embed'. They have the same meaning as the command options +explained below, but are applied globally. Note that `media4svg' is incompatible with package `media9`. The command for media inclusion is - \includemedia[]{}{} + \includemedia[[, url]]{}{} + +or + + \includemedia[, youtube]{}{[,[, ...]]} Command options: @@ -115,9 +119,9 @@ document instead of the media display. autoplay Media playback is started after the page has been loaded in the web browser. -Depending on their settings, browsers may refuse to autoplay audio and -video with unmuted audio. Option `muted' may need to be set as well to allow -automatically start of video playback. +Depending on their settings, browsers may refuse to autoplay multimedia with +unmuted audio. Option `muted' may need to be set as well to allow playback to +be started automatically. loop diff --git a/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-1.svg b/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-1.svg index 85af0c109aa..535c57cccd0 100644 --- a/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-1.svg +++ b/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-1.svg @@ -9,13 +9,13 @@ function $(id) {return document.getElementById("msvg_"+id.toString().trim());}; -Presentationexamplewithembeddedvideo -UseaWebbrowserandpress - +Presentationexamplewithembeddedvideo +UseaWebbrowserandpress + @@ -46,11 +46,11 @@ text.f10 {font-family:nf8;font-size:10.909088px} - + -F11 +F11 @@ -61,25 +61,25 @@ text.f10 {font-family:nf8;font-size:10.909088px} -AlexG12thAugust2022 - -Navigatewith - +AlexG12thSeptember2022 + +ToggleFull-Screenwith + - + - - + + -PageUp +F11 @@ -90,23 +90,23 @@ text.f10 {font-family:nf8;font-size:10.909088px} -& - +,navigatewith + - + - - + + -PageDn +PageUp @@ -117,23 +117,23 @@ text.f10 {font-family:nf8;font-size:10.909088px} -,toggleFull-Screenwith - +& + - + - - + + -F11 +PageDn @@ -144,8 +144,8 @@ text.f10 {font-family:nf8;font-size:10.909088px} -.Tobuildthispresentationfromthesource,run: -dvilualatexbeamer-exampledvilualatexbeamer-exampledvisvgm--bbox=papersize--font-format=woff2--zoom=-1--page=---linkmark=none\beamer-example +,mouseclickormousewheel.Tobuildthispresentationfromthesource,run: +dvilualatexbeamer-exampledvilualatexbeamer-exampledvisvgm--bbox=papersize--font-format=woff2--zoom=-1--page=---linkmark=none\beamer-example diff --git a/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-2.svg b/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-2.svg index e3d67c886e8..6220dd1899f 100644 --- a/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-2.svg +++ b/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-2.svg @@ -9,11 +9,11 @@ function $(id) {return document.getElementById("msvg_"+id.toString().trim());}; -Videofile -Embeddedlocalvideofilefrompackage -mwe -\includemedia[width=24em,height=13.5em]{}{example-movie.mp4} - +Videofile +embeddedlocalvideofilefrompackage +mwe +\includemedia[width=24em,height=13.5em]{}{example-movie.mp4} + - - - diff --git a/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-3.svg b/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-3.svg index e6f9ad5d940..b5af4643866 100644 --- a/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-3.svg +++ b/Master/texmf-dist/doc/latex/media4svg/example/beamer-example-3.svg @@ -9,10 +9,10 @@ function $(id) {return document.getElementById("msvg_"+id.toString().trim());}; -Remotevideo -VideostreamedfromURL -\includemedia[width=24em,height=13.5em,url]{}{%https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm} - - - - - -