Set proxy and full-res while importing
I am working on importing video from a panel. I have links to full-res video and also a proxy. I would like to download the proxy first and import into project, so that the user can start working on it while the full-res is still being downloaded.
Is there a way to achieve this from panel code?
- I was hoping that the importFiles call takes a proxy path in addition to the full-res. But probably it doesn't?
- Only way I can think of is to call importFiles with the proxy path, then when full-res is available, I should call changeMediaPath to point to the full-res, then again call attachProxy to set the proxy? Will this work and is there a way to avoid this manual juggling?
- How do I keep track of the files I imported in terms of item references in the project, so that I can call changeMediaPath or attachProxy on the correct item? Sample code seems to take the first item always. Does importFiles return some kind of reference to be used later?
Thanks,
Andaleeb
