I am trying to add multiple buttons into a PDF. These buttons are intended to control the playback of rich media. I have managed to add an audio file, and I can activate (start playback) and deactivate (stop playback) this rich media using a button. However, I am encountering difficulties when trying to achieve more complex functions, such as pausing or moving the playback location to a specific time offset.
According to the JavaScript Acrobat API Reference manual, these functionalities should be achievable. There is a method, 'callAS', which is supposedly designed for this purpose. However, it does not seem to be working for me. Is this method not supported? If that's the case, are there any alternative methods to accomplish these two tasks - pausing and moving the playback time?
This starts playback:
Code: Select all
this.getAnnotsRichMedia(0)[0].activated=true;
Code: Select all
this.getAnnotsRichMedia(0)[0].activated=false;
Code: Select all
this.getAnnotsRichMedia(0)[0].callAS("multimedia_play");
this.getAnnotsRichMedia(0)[0].callAS("multimedia_pause");
this.getAnnotsRichMedia(0)[0].callAS("multimedia_seek", time);
Thank you