How can I place an MP3 file in the page of a PDF, so that it can play the audio on a Windows machine with Adobe Acrobat Reader?
Update: August 31, 2020
The answer below no longer works in 2020. I tried this code:
\starttext
\setupinteraction[state=start]
\externalfigure[sample.mp3]
\stoptext
I placed an mp3, sample.mp3 in the same folder as the tex file. I compiled. No errors appeared.
When I view it, I get a grey square that says:
name: sample.mp3
file: sample.mp3
state: unknown
I tried in both Adobe Acrobat Reader DC and Microsoft Edge and the results were the same grey square.
Then I tried changing the code to not include the file extension, just \externalfigure[sample and that prints this message three times:
see samples.tex
I searched my entire ConTeXt install directory and cannot find any file with this name to refer to, nor is it mentioned in the ConTeXt Garden, nor could I find anything in the mailing lists.
Update: September 2, 2020
I found that .mp3 is not supported. Looking here, I found mov is supported, but it says "NOTE: Movie inclusion only works in Adobe Acrobat but does not work on Linux". Note that I'm compiling in Linux, but viewing on a Windows work computer to test in Adobe. Could that be cause, or should the file compile in Linux fine and still be viewable in Adobe? When compiled, the resulting file is just empty, and also is 5 kb, while the video is 700 kb, so clearly the mov isn't being placed inside the PDF.
\starttext
\setupinteraction[state=start]
\enabletrackers[graphics.locating]
\externalfigure[sample.mov][width=10cm, height=10cm]
\stoptext
This does, at least, create an invisible 10 cm x 10 cm clickable box appear in Adobe, as the mouse changes from a cursor to a hand when placed within the left middle of the document, but nothing plays or is heard.
Update: September 2, 2020, Update 2
I tried by converting an MOV to pdf, then embedding the PDF, but the converted created a PDF with an image on each slide instead of placing a video in a PDF that could be embedded into the ConTeXt-created PDF.
\externalfigure[file.mp3]works? – Aditya Nov 10 '14 at 07:51\externalfigure[video]play the video? Which viewer are you using? – Aditya Aug 31 '20 at 11:31https://live.contextgarden.net/:\starttext hello! \immediate\pdfextension obj stream file {\jobname.tex} \stoptext. – AlexG Sep 03 '20 at 05:28