Game Development Community

playiOSMovie in iOSMoviePlayback.mm don't work !!!

by Andrea Fraboni · in Torque 2D Professional · 06/10/2013 (11:55 am) · 1 replies

Hi to all

there is a problem using playiOSMovie in iOSMoviePlayback.mm

if I active TORQUE_ALLOW_MOVIEPLAYER compiling out errors as :

'release' is unavailable: not available in automatic reference counting mode ARC forbids explicit message send of 'release'

Then if I remove release and dealloc can compile but don't work.

Can anyone help me ?

Thanks



#1
06/10/2013 (1:55 pm)
more info

when call this :

movieViewController = [[MPMoviePlayerViewController alloc] initWithContentURL: filePath];

I read in the console :

Jun 10 22:50:12 MacBook.local Torque2D[4948] <Error>: CGContextSaveGState: invalid context 0x0
Jun 10 22:50:12 MacBook.local Torque2D[4948] <Error>: CGContextClipToRect: invalid context 0x0
Jun 10 22:50:12 MacBook.local Torque2D[4948] <Error>: CGContextTranslateCTM: invalid context 0x0
Jun 10 22:50:12 MacBook.local Torque2D[4948] <Error>: CGContextDrawShading: invalid context 0x0
Jun 10 22:50:12 MacBook.local Torque2D[4948] <Error>: CGContextRestoreGState: invalid context 0x0