Tips for life, tips for tech

Media embedding (MP4, SWF), phối hợp rất tốt với Xilisoft Video Converter

1. Nhúng file swf

\documentclass{article}
\usepackage{media9} %\usepackage[dvipdfmx]{media9} % only for latex->dvipdfmx 
\begin{document} 
\includemedia[ activate=pageopen, width=200pt,height=150pt, }{}{myexample.swf} 
\end{document}

2. Nhúng file MP4 hoặc FLV

\documentclass{article}
\usepackage{media9}
%\usepackage[dvipdfmx]{media9} % only for latex->dvipdfmx

\begin{document}

\includemedia[
  activate=pageopen,
  width=200pt,height=150pt,
  addresource=mymovie.mp4,
  flashvars={%
     source=mymovie.mp4% same path as in addresource!
%   &autoPlay=true%    % optional configuration
%   &loop=true%        % variables
  }  
]{}{VPlayer.swf}

\end{document}

Nguồn: http://tex.stackexchange.com/questions/45242/animations-with-movie15-and-swf-files

Reply in English

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: