\begin{frame} \onslide<1-2> This is the first line. \onslide<2> This is the second line with audio. \onslide<2> \includemedia[ addresource=audio.mp3, activate=pageopen, flashvars={ source=audio.mp3 &autoPlay=true}, transparent]{}{APlayer.swf} \end{frame}
这样并不能实现预期的效果,正确写法如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
\begin{frame} \onslide<1-2> This is the first line. \onslide<2> This is the second line with audio. \alt<2>{ \includemedia[ addresource=audio.mp3, activate=pageopen, flashvars={ source=audio.mp3 &autoPlay=true}, transparent]{}{APlayer.swf} }{} \end{frame}