Can't use videos on iOS Cordova export

Bugs will be moved here once resolved.

Post » Sun Jan 14, 2018 8:03 pm

Problem Description
Any form of video either does not show at all or appears as fullscreen with playback control buttons on iOS devices (iOS 11).
At first I posted as a "how to" post, but was suggested to post as a bug. (original post: viewtopic.php?f=147&t=199527 )
By the way, it would be great to know if that still happens on c3, because perhaps it is a behavior related to how iOS treats videos and not C2 or C3.
Anyways, it would also be great to know how any of you work around this kind of issue.

Attach a Capx ... .capx?dl=0

Description of Capx
Capx contains a test scene with multiple videos and sprite elements with animation behaviors (simple sine rotation and opacity)
On play you should see a glitch and a moth video, both with some transparency between the 2 rotating sprites, like this: ... .jpeg?dl=0

Steps to Reproduce Bug
  • Step 1 - export it as cordova
  • Step 2 - build the cordova project using the command line tools (or any other way you prefer, the result is the same as far we know)
  • Step 3 - open in xcode and test on any iOS device

Observed Result
Formats like webm display no video (which is actually expected because iOS does not seem to support webm)
Formats encoded with h264 (mp4) display as fullscreen videos with playback buttons

Expected Result
It would be great to have them behave like normal elements of the game, as one can see in the desktop exports.

Affected Browsers
Not applicable I guess since we are talking about the Cordova export, right?

Operating System and Service Pack
iOS 11

Construct 2 Version ID
I have seen the same behavior in all of the versions I tested, which were all from r247 on (248,249 and 250)

Also, here is the project already configured to be exported in xcode so to make the test easier, just open this on xcode and test it on any iOS device ...
Posts: 9
Reputation: 1,485

Post » Tue Feb 20, 2018 2:00 pm

Ugh, iOS really makes this difficult >_< I've figured out a fix to make sure it's working properly for the next beta.
Scirra Founder
Posts: 25,082
Reputation: 199,732

Post » Thu Feb 22, 2018 8:10 am

Thanks Ashley! I was giving up the possibility to release something for iOS already
Posts: 9
Reputation: 1,485

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests