Stand alone missing media on different computer

scalf's picture

Hello,

I have been making some apps that I can use in multi computer installations. They need to be simple, real simple - playback control, video selection, syphon port selection, opacity interaction.

I am having difficulties when sending this to another computer. For instance, I'll have a video I want to play in the comp. After embedding it in Xcode as usual and testing on the 1st machine - it fails to load the video on the 2nd.

Similarly, the app will not play on the 2nd machine if the correct plugins are not also transferred over - such as syphon.

How can I ensure that the app will play? If you must drag over the media and plugins for every app that would be illogical. What is the appropriate way to transform a Quartz Comp into a "Truly Stand Alone App"?

cybero's picture
Re: Stand alone missing media on different computer

Sounds like a file paths issue.

Are you using the Movie Importer or the Video Tools players, if the latter, QuickTime or VideoTools player?

One could bundle all the required resources together into the application itself, or you could point the application to a folder of media you have concurrently installed with the application or else have made available upon a server or external drive.

If you embed the video into the application on one machine and then find it doesn't work on another machine but if you search the Package Contents folder for the application all the required assets are contained therein and that application fails on a second machine I start to think in terms of codec support and plugin support dependency differences between the two machines.

If that were the case - say you have a decoder on one machine but not on another then that could be the rectified by utilising a media asset renderable by both machine's sub systems.

Sounds to me like this is more plugin related though.

You have to have the plugins your application needs available in some fashion or another to the standalone application or else it won't function correctly in environments were such support is absent.

If your application points to a media asset outside of it's Package Content's folder then that asset has to be physically apprehensible by file path location to the application.

Import your complete media folder with option Create Folder references for any folder added in the folder radio button while selecting folder in Xcode.

scalf's picture
Re: Stand alone missing media on different computer

Thanks for the thorough reply,

I should've noted that I tried adding them to the resources in Xcode. I added them to resources and then told the Quartz App to look at those specific locations (with the '~' route to be universal). However, it was the same issue, did not include. Although this time the file size was large enough to believe it had included them in the build.

Take for instance MadMapper, it has support for Syphon, and has included media; but, you do not to install them separately, it is all in one clickable deal. My main drive is: "How can that kind of seamlessness be structured into a stand alone Quartz app?"

There seams to be 2 issues here: media and plugins Seemingly related

I will strike up your codec test and see if that can shed any light.

Thanks

scalf's picture
Re: Stand alone missing media on different computer

Independent of codec, I found. Same problem no matter ProRes, or H.264, etc

scalf's picture
Re: Stand alone missing media on different computer

Independent of codec, I found. Same problem no matter ProRes, or H.264, etc

cybero's picture
Re: Stand alone missing media on different computer

Well if you've bundled the media and plugin resources and checked against the rather leftfield possibility of a codec related problem and counted that out we're left with there being a project configuration problem in Xcode. What is the build architecture set to? What version of Xcode are you running?

This problem could be a question for the Xcode forums too.