It looks like you're new here. If you want to get involved, click one of these buttons!
-(void)stop{ if(self.Alayer != nil) { [self.Alayer removeFromSuperlayer]; self.Alayer = nil; [self.Alayer release]; } if(self.player != nil){ [self.player pause]; [self.player release]; self.player = nil; } if([self superview]!=nil) [self removeFromSuperview]; }
Likes: Sarthak, ar2rsawseen, SinisterSoft
Likes: SinisterSoft
Comments
which ios version and devices have you tried? Will retest on mine
Thanks to my friend, who is ios developer.
it is related with memory. In the plugins, there is a mediaplayer in being released,then after it is set as nil. To solve this
In Xcode Project,
Open GMediaClass.mm from Plugins folder, and then replace your stop method with below code,
Likes: Sarthak, ar2rsawseen, SinisterSoft
I only don't understand, how come it should be nilled and only then released?
Well, not an IOS developer, but if this is working for you
Likes: SinisterSoft