\documentclass{beamer}
\mode<presentation>
{
  \usetheme[compress]{Boadilla}
}

\usepackage{movie15}

\title{A movie in a latex presentation}
\author{Me}

\begin{document}
A rotating cardioid is amazing!
\begin{center}
\begin{figure}[ht]
\includemovie[
  poster, % shows initial frame before play begins
  controls,    % controls are only available on a Mac (they will not appear on windows.) 
  % (if no controls are used, then you can double click the movie to start it.)
  repeat, % repeat the movie over and over.
  text=(Loading movie...) % text shown while loading movie
]{6cm}{6cm}{output.avi}
\end{figure}
\end{center}
\end{document}