如何在投影仪框架上移动视频?

如何在投影仪框架上移动视频?

我的投影仪演示文稿中有一个视频,该视频已经是全屏大小,但向下移动了几厘米,向右移动了几厘米。我该如何移动环境\includemedia

毫米波:

\documentclass[aspectratio=169]{beamer}
\usepackage{media9}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{tikz}
\usetheme{default}
\usetikzlibrary{calc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% absolute positioning of typeset material    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\placetextbox}[4][center]{%
    % [#1]: box anchor: center (default) | 
    %                 south west | west | north west | north |
    %                 north east | east | south east | south | 
    %                 mid west | mid | mid east |
    %                 base west | base | base east 
    % #2: horizontal position (fraction of page width)
    % #3: vertical position (fraction of page height)
    % #4: content
    %
    \tikz[remember picture,overlay,x=\paperwidth,y=\paperheight]{%
        \node[anchor=#1,inner sep=0pt]
        at ($(current page.south west)+(#2,#3)$) {#4};
    }%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usecolortheme{wolverine}
\title{some title}
\date{01.01.2010}
\subtitle{some subtitle}
\author{some authors}
\begin{document}
\begin{frame}
\hspace{-4pt}
\vspace{-10pt}
\centering
\includemedia[
width=\paperwidth,
height=\paperheight,
%keepaspectratio,
activate=pageopen,
passcontext,  %show VPlayer's right-click menu
addresource=camp-tschechien.mp4,
flashvars={
    source=camp-tschechien.mp4&autoPlay=true
}
]{}{VPlayer.swf} \hfill
\end{frame}
\end{document}

答案1

要强制视频显示在整个框架上,只需定义一个位于框架中心的文本框,并使用以下设置包含视频。

\documentclass[aspectratio=169]{beamer}
\usepackage{media9}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{tikz}
\usetheme{default}
\usetikzlibrary{calc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% absolute positioning of typeset material    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\placetextbox}[4][center]{%
    % [#1]: box anchor: center (default) | 
    %                 south west | west | north west | north |
    %                 north east | east | south east | south | 
    %                 mid west | mid | mid east |
    %                 base west | base | base east 
    % #2: horizontal position (fraction of page width)
    % #3: vertical position (fraction of page height)
    % #4: content
    %
    \tikz[remember picture,overlay,x=\paperwidth,y=\paperheight]{%
        \node[anchor=#1,inner sep=0pt]
        at ($(current page.south west)+(#2,#3)$) {#4};
    }%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usecolortheme{wolverine}
\title{some title}
\date{01.01.2010}
\subtitle{some subtitle}
\author{some authors}
\begin{document}
\begin{frame}
\placetextbox[south]{0.5}{0}{\includemedia[
    width=\paperwidth,
    height=\paperheight,
    keepaspectratio,
    activate=pageopen,
    passcontext,  %show VPlayer's right-click menu
    addresource=damm.mp4,
    flashvars={
        source=damm.mp4&autoPlay=true
    }
    ]{}{VPlayer.swf}}
\end{frame}

相关内容