when i run this and it comes to play the video, i get an error that doesnt even relate to the video, it happens with all variables i try and pass over using the [push objectForKey:@"vid"];. if i just vid_name =@"video" it works fine.
Im getting this annoying error and tried every i know but in this case it hasnt helped.
when i run this and it comes to play the video, i get an error that doesnt even relate to the video, it happens with all variables i try and pass over using the [push objectForKey:@"vid"];. if i just vid_name =@"video" it works fine.
2010-08-17 13:19:44.873 APP[145:307] -[NSCFCharacterSet _fastCharacterContents]: unrecognized selector sent to instance 0x14eca0
2010-08-17 13:19:44.965 APP[145:307] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFCharacterSet _fastCharacterContents]: unrecognized selector sent to instance 0x14eca0'
but like i said, i get a different error for all different things i try.
Ok things to try:
1) Just before your line "NSString *path = [[NSBundle mainBundle] pathForResource:videoName ofType:@"mp4"];", debug and actually check the contents of "path". Does it look correct? Can you paste the path in your reply
2) Instead of passing "videoName" in the above line, hardcode it @"video". If this works then you definitely know it is a path issue (which is what the errors are suggesting)
3) I know its a stupid question but is the video.mp4 file actually in the bundle and does it match what you are passing in for its name i.e. case sensitivity etc.
1) Just before your line "NSString *path = [[NSBundle mainBundle] pathForResource:videoName ofType:@"mp4"];", debug and actually check the contents of "path". Does it look correct? Can you paste the path in your reply
2) Instead of passing "videoName" in the above line, hardcode it @"video". If this works then you definitely know it is a path issue (which is what the errors are suggesting)
3) I know its a stupid question but is the video.mp4 file actually in the bundle and does it match what you are passing in for its name i.e. case sensitivity etc.
1) If i put the debug arrow before this line then it doesnt run and cant see what value path is ??
Printing description of test356985:
The program being debugged was signaled while in a function called from GDB.
GDB has restored the context to what it was before the call.
To change this behavior use "set unwindonsignal off"
Evaluation of the expression containing the function (CFShow) will be abandoned.
The program being debugged was signaled while in a function called from GDB.
GDB has restored the context to what it was before the call.
To change this behavior use "set unwindonsignal off"
Evaluation of the expression containing the function (CFShow) will be abandoned.
Printing description of test356985:
The program being debugged was signaled while in a function called from GDB.
GDB has restored the context to what it was before the call.
To change this behavior use "set unwindonsignal off"
Evaluation of the expression containing the function (CFShow) will be abandoned.
The program being debugged was signaled while in a function called from GDB.
GDB has restored the context to what it was before the call.
To change this behavior use "set unwindonsignal off"
Evaluation of the expression containing the function (CFShow) will be abandoned.
Tell you what...send me a PM with details of where I can get your code and I'll take a look if you like. The forum isn't the best place for debugging :-)