Video is played using media player inside my game.
It's working perfectly in Android devices, but in iOS devices, it will crashed after the completion of video with error message : "exc_bad_access code=1 address=0x91756e9a".
*** For any EXC_BAD_ACCESS errors, you are usually trying to send a message to a released object.*** (Written there)
Maybe somehow IOS is behaving differently in video part. Maybe some event listener is causing the error. Try to remove listeners than try. (Like onvideoend or videocomplete is there is any) If it will solve the issue on IOS then you can handle those event listeners with a timer hence you already know how much second will last your video.
Maybe @ar2rsawseen can update his plugin with this? Will save him some time tracking it down.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
@ar2rsawseen thanks! It works now. Though now I doubt if it truly did not work before.... Anyway, is there a way to change the orientation of the video being played? Or does it always follow the orientation that's specified in the gproj file?
Comments
http://stackoverflow.com/questions/20913394/thread-1-exc-bad-access-code-1-address-0xf1759018
*** For any EXC_BAD_ACCESS errors, you are usually trying to send a message to a released object.*** (Written there)
Maybe somehow IOS is behaving differently in video part. Maybe some event listener is causing the error. Try to remove listeners than try. (Like onvideoend or videocomplete is there is any) If it will solve the issue on IOS then you can handle those event listeners with a timer hence you already know how much second will last your video.
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, SinisterSoft
https://deluxepixel.com
https://github.com/gideros/giderosplugins/commit/5e35c85eba521abe44ccc165d50b388b625d4fd0
Likes: SinisterSoft, cokeramirez
Anyway, is there a way to change the orientation of the video being played? Or does it always follow the orientation that's specified in the gproj file?