ios image file names

J. Landman Gay jacque at hyperactivesw.com
Tue Dec 13 16:47:53 CST 2011


On 12/12/11 11:42 PM, edward cawley wrote:
> Jacque,
> I used your suggestion and got the following :
>
> 12/12/11 11:23:43 PM	/Users/ecawley/Library/Application Support/iPhone Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Lawn2[6296]	<<<<  AVController>>>>  -[AVController fpItemNotification:sender:]: item with path file://localhost/Users/ecawley/Library/Application%20Support/iPhone%20Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Users/ecawley/Cerastium%20vulgatum-m.mov failed to open with err 2
> 12/12/11 11:23:50 PM	/Users/ecawley/Library/Application Support/iPhone Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Lawn2[6296]	<<<<  AVController>>>>  -[AVController fpItemNotification:sender:]: item with path file://localhost/Users/ecawley/Library/Application%20Support/iPhone%20Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Eleusine%20indica%20.mov failed to open with err 2
>
> I'm not sure what err 2 is and I did not try to open/play The Cerastium movie at this time. Where caan I find a list of the error msg?

I don't think it's a LiveCode error, since error 2 in LiveCode is a 
recursion error. It must be an iOS or simulator error code but I 
couldn't find a definitive list of those with a quick search.

I'd guess it's a path error though. The paths point to a location inside 
your app bundle, and one of them includes a reference to the User folder 
which probably doesn't exist there. Where is the movie actually stored? 
If you're trying to set a player filename, you don't want to use a a url 
reference for a file on disk, just use the plain path relative to the 
engine folder. I'm not sure how the simulator reports errors like this, 
but offhand it looks like you're passing a URL reference instead of a 
relative file path, and something is urlEncoding it also.

It would help to see the relevant lines of your script.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list