0 Favourites

Can't use videos on iOS Cordova export

  • 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: )

    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

    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:

    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

    OR

    • Step 1 - download the xcode configured cordova project and open it on xcode and test with 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

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Ugh, iOS really makes this difficult >_< I've figured out a fix to make sure it's working properly for the next beta.

  • Thanks Ashley! I was giving up the possibility to release something for iOS already

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)