So its stripping the video completely. It would be preferable to unhide the template instead of spawn one. Is that possible?
I am currently using the following code to spawn the template:
var a = this.getTemplate("Resources");
a.spawn ();
A little more detailed info: I build this .PDF in InDesign and need to "hide" and "show" these pages when a user clicks on certain buttons.
Ok - First... Never, never, NEVER.... build interactive PDF in InDesign if you are planning on automating it using scripts. Put the pages together in InDesign and then add the interactive components in Acrobat. I'll spare you the details; just trust me on this one.
You seem to know how to create a template so I won't go into that. Hiding and showing it uses the hidden property. So to show a hidden template use...
this.getTemplate("Resources").hidden = false;
To hide it use true instead of false.
If that doesn't fix the issue, file a bug report. The entire page content should still be there between hides and shows. I imagine that a rich media annotation maybe shouldn't survive a page spawn because a page can be spawned multiple times; while unexpected, that might actually be the correct and desired behavior.