Jump to content
Server Maintenance This Week. ×

Insert Audio/Video - ERROR code = 3


DPaquin

This topic is 1536 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am trying to insert into a container field the file path of a mp4 video as a reference. I am getting an error equal 3.

I've followed some example and do not understand why I am getting this error.

If I try to import the video file by going to the field and with the mouse do a right click I am able to import the video fiel as a reference. Unfortunately the script does not work.

Thanks!

inserVideoPath (as a reference).pdf

Edited by DPaquin
Link to comment
Share on other sites

1 hour ago, DPaquin said:

I am getting an error equal 3.

I have managed to get the same error. It went away after formatting the target field as interactive container (optimized for PDF, MP3, etc). From the help:

If there is no active container field on the layout where the script is being performed, Insert Audio/Video returns an error code that can be captured with the Get(LastError) function.

This script step works only for interactive containers. 

 

1 hour ago, DPaquin said:

If I try to import the video file by going to the field and with the mouse do a right click I am able to import the video fiel as a reference.

But not as playable video, I think? You can get the same result using the Insert File script step.

 

Link to comment
Share on other sites

Thanks Comment.

It’s now working, after doing what you’ve said I.e formatting the target field as interactive container.

However, I had to remove the statement /Volumes/

Edited by DPaquin
Link to comment
Share on other sites

This topic is 1536 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.