It appears that there is a problem with the placement of media buttons in RTL text. Consider this MWE:
\documentclass{article}
\usepackage{libertine,media9,polyglossia}
\setdefaultlanguage[variant=british]{english}
\setotherlanguage[]{hebrew}
\begin{document}
\marginpar{\includemedia[
label=song49,
activate=pagevisible,
deactivate=pageinvisible,
noplaybutton,
flashvars={source=http://www.kfeuerherm.ca/IntHeb/BBE.mp3&hidebar=true},
transparent
]{\makebox[1cm]{x}}{APlayer.swf}\mediabutton[mediacommand=song49:playPause,tooltip={Play/Pause}]{(P)}\mediabutton[mediacommand=song49:play[(0.0)],tooltip={Reset}]{(R)}}
%\begin{RTL}
\mediabutton[
mediacommand=song49:play[(0.65)],
mediacommand=song49:pause[(1.45)],
overface=ONE
]{בראשׁית}
\mediabutton[
mediacommand=song49:play[(1.8)],
mediacommand=song49:pause[(2.45)],
overface=TWO
]{ברא}
\mediabutton[
mediacommand=song49:play[(2.8)],
mediacommand=song49:pause[(3.8)],
overface=THREE
]{אלהים}
%\end{RTL}
\end{document}
This example compiles fine, with or without \texthebrew in the media button label. However, trying to place \texthebrew around the buttons so that the labels will typeset in the correct order, or uncommenting the lines \begin{RTL} and \end{RTL} results in the error "xdvipdfmx:fatal: A pending form XObject at the end of page.”
Can anyone advise on the root of the problem and/or how to get around it?
\texthebrew{}, but enabled theRTLenvironment in the code you provided. – AlexG Jul 15 '14 at 15:14\usepackage{libertine}was incompatible with later having\setmainfontor\setsansfontto Libertine fonts. This did not happen with XeTeX compiles. – K.G. Feuerherm Aug 06 '14 at 18:25