On 7/31/21 1:08 AM, Michal Vlasák via ntg-context wrote: > [...] > By the way, Pablo, your issue > https://www.mail-archive.com/ntg-context@ntg.nl/msg88204.html was also > solved in the last upload. Unfortunately it will probably not help you, > because Acrobat no longer supports this. > [...] > But, you can use renderings instead: > > \useexternalrendering[myaudiorendering] > [audio/mp3][audio.mp3][embed=yes] > > \definerenderingwindow[audiowindow] > [width=0sp, height=0sp] > > \definelayer[resources] > \setupbackgrounds[page][background=resources] > \setlayer[resources]{\placerenderingwindow[audiowindow][myaudiorendering]} > > \goto{PLAY SOUND}[StartRendering{myaudiorendering}] > > This is basically the example from "/back-swf.mkiv". Works in Acrobat. > And one can use either of the three possible file methods (embedded, > external, URL), not just external files. The layer is so that the empty > frame doesn't interfere with normal page content. No frame is drawn when > both dimensions are 0, not sure if that is a behaviour one can take as > granted. But currenntly the dimensions can't be zero.
Many thanks for your code update, Michal. I’m extremely interested in investigating the possibilities this opens. But I’m afraid that I will have other things to do first. It will take me months to come back to this again. > Hans, I would omit the check for 0 dimensions of rendering window (as > already noted in the source, it is useful for sound). See patch below. Many thanks for the patch and for your help, Pablo -- http://www.ousia.tk ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________