diff options
Diffstat (limited to 'texmf-dist/tex/latex/ketpic/ketmedia.sty')
-rw-r--r-- | texmf-dist/tex/latex/ketpic/ketmedia.sty | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/texmf-dist/tex/latex/ketpic/ketmedia.sty b/texmf-dist/tex/latex/ketpic/ketmedia.sty new file mode 100644 index 00000000..1fb2b95e --- /dev/null +++ b/texmf-dist/tex/latex/ketpic/ketmedia.sty @@ -0,0 +1,69 @@ +\newcommand{\inputsound}[3][90]{ + +% #1:position, #2:dir, #3:file + +\vspace{-20mm} + +\vfill + +\noindent% +\hspace*{#1mm}\hspace{8mm}% +\mediabutton[ +mediacommand=#3:playPause, +overface={\color{blue}\small \strut \fbox{$\oplus\triangleright$}}, +%downface={\color{red}\small\strut Pause/Pause}% +]{\small\strut \fbox{$\oplus\triangleright$}}% +\mediabutton[ +mediacommand=#3:rewind, +overface={\color{blue}\small \strut \fbox{$\ll$}} +%downface={\color{red}\small\strut Pause/Pause}% +]{\small\strut \fbox{$\ll$}}% +%\mediabutton[ +%mediacommand=#3:seek[(15)], +%overface={\color{blue}\small \strut \fbox{1}} +%downface={\color{red}\small\strut Pause/Pause}% +%]{\small\strut \fbox{1}}% +%\mediabutton[ +%mediacommand=#3:seek[(30)], +%overface={\color{blue}\small \strut \fbox{2}} +%%downface={\color{red}\small\strut Pause/Pause}% +%]{\small\strut \fbox{2}}% + +\vspace{-7mm} + +\noindent% +\hspace*{#1mm}% +\includemedia[ + label=#3, + addresource=#2#3.mp3, + activate=pageopen, + flashvars={ + source=#2#3.mp3 + &autoPlay=true + } +% transparent, +% passcontext +]{\color{blue}\fbox{ }}{APlayer.swf} + +} + +\newcommand{\inputmovie}[3][90]{ + +\includemedia[ + label=#3, + width=0.8\linewidth,height=0.6\linewidth, +% width=60mm,height=45mm, + activate=pagevisible, + addresource=#2#3.mp4, + flashvars={ + source=#2#3.mp4 +% &showloading=never +% &autoRewind=true + &autoplay=true +% &loop=1 +% &buffer=0.2 + } +%]{}{player_flv_maxi.swf} +]{}{VPlayer.swf} + +}
\ No newline at end of file |