summaryrefslogtreecommitdiff
path: root/texmf-dist/tex/latex/ketcindy/ketmedia.sty
blob: 49d593b6dea6c8f7ebd8ded2eaa67f9ad1801145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
\newcommand{\inputsound}[3][90.1]{
% #1:h-position(90), #2:dir(/), #3:file
%2017.12.25  main, \inputsound changed
\ifnum #1=90.1
\vspace{-20mm}

\vfill
\fi

\noindent%
\hspace*{#1mm}%
\includemedia[
    label=#3,
    addresource=#2#3.mp3,
    activate=pageopen,
    flashvars={
      source=#2#3.mp3
     &autoPlay=true
    }
]{\color{blue}\fbox{ }}{APlayer.swf}%
\mediabutton[
mediacommand=#3:playPause,
overface={\color{blue}\small \strut \fbox{$\oplus\triangleright$}},
]{\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$}}%
}

\newcommand{\inputmovie}[3][0.8]{
\includemedia[
  label=#3,
  width=#1\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}
}