看板 MaRoon
作者 標題 media9
時間 2015-04-11 Sat. 13:42:03
說明: 插入影片、聲音、3D物件(CAD、Matlab 等),可用嵌入檔案和URL連結
影片:
播放模式有 VPlayer9.swf 和 StrobeMediaPlayback.swf 兩種
(範例)
\includemedia[
label=some_dice,
width=0.6\linewidth,height=0.45\linewidth,
addresource=random.mp4, %two video files
addresource=cube.mp4,
transparent, %transparent player background
activate=pageopen,
flashvars={
source=random.mp4
&loop=true % loop video
&scaleMode=letterbox % preserve aspect ratio while scaling the video
}
]{}{VPlayer9.swf}
\includemedia[
width=0.6\linewidth,height=0.3375\linewidth, % 16:9
activate=pageopen,
flashvars={
src=rtmp://streaming.music.indiana.edu:1935/onDemand/mp4:media/%
20090327_VarRussianThemeh264480.m4v
&scaleMode=stretch
}
]{}{StrobeMediaPlayback.swf}
聲音:
APlayer9.swf 模式
(範例)
\includemedia[
addresource=bird.mp3,
flashvars={
source=bird.mp3
&autoPlay=true
},
transparent
]{\color{blue}\framebox[0.4\linewidth][c]{Singing bird}}{APlayer9.swf}
3D物件:
相容 .prc 和 .u3d 檔
(範例)
\includemedia[
width=0.8\linewidth,height=0.8\linewidth,
add3Djscript=asylabels.js, %upright text labels
add3Djscript=3Dspintool.js, %let scene rotate about zaxis
% 3Dcoo, 3Droo values found with ‘Generate Default View’ from
% context menu
3Dmenu,
3Dc2c=4 2 3,
3Dcoo=4.413303375244141 2.195653200149536 0.000011444091796875,
3Droo=429.49035778293376,
]{\includegraphics{epixposter}}{epix.prc}
\mediabutton[3Dgotoview=dice:N]{\fbox{Next view}}
\mediabutton[3Dgotoview=dice:(Back)]{\fbox{View ‘Back’}}
\mediabutton[3Dgotoview=dice:5]{\fbox{6th view in the list}}
Contents of ‘dice.vws’:
VIEW=Front
ROO=27
END
VIEW=Back
ROO=27
C2C=0 1 0
END
VIEW=Left
ROO=27
C2C=1
0 0
END
VIEW=Right
ROO=27
C2C=1 0 0
END
VIEW=Top
ROO=27
C2C=0 0 1
END
VIEW=Bottom
ROO=27
C2C=0 0 1
END
VIEW=Fish Eye at Centre
=============分隔線=============
\includemedia[
label=malte,
width=0.5\linewidth,height=0.5\linewidth,
activate=pageopen,
3Dmenu,
3Dc2c=1 1 1,
3Dcoo=0.001042630523443222
1.4577869224116568e19
0.028235001489520073,
3Droo=0.2604540212188131,
add3Djscript=malte.js
]{}{malte.u3d}
\mediabutton[
jsaction=malte:{annotRM[’malte’].context3D.cntrClockWise();}
]{\includegraphics[height=1.44em]{boutona}}
\mediabutton[
jsaction=malte:{annotRM[’malte’].context3D.pause();}
]{\includegraphics[height=1.44em]{boutonb}}
\mediabutton[
jsaction=malte:{annotRM[’malte’].context3D.clockWise();}
]{\includegraphics[height=1.44em]{boutonc}}
\hspace{1em}
\mediabutton[
jsaction=malte:{annotRM[’malte’].context3D.scaleSpeed(1/1.1);}
]{\includegraphics[height=1.44em]{boutond}}
\mediabutton[
jsaction=malte:{annotRM[’malte’].context3D.origSpeed();}
]{\includegraphics[height=1.44em]{boutone}}
\mediabutton[
jsaction=malte:{annotRM[’malte’].context3D.scaleSpeed(1.1);}
]{\includegraphics[height=1.44em]{boutonf}}
--
※ 作者: KTR150Fi 時間: 2015-04-11 13:42:03
※ 看板: MaRoon 文章推薦值: 0 目前人氣: 0 累積人氣: 124
回列表(←)
分享