Fullscreen Youtube Crash on iPhone

Welcome! Forums Unity Plugins In-App Web Browser Fullscreen Youtube Crash on iPhone

Tagged: , ,

This topic contains 3 replies, has 2 voices, and was last updated by  3dprasad 1 day, 17 hours ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1301

    3dprasad
    Participant

    Hi,

    I recently purchased the InAppBrowser plugin for my application.

    The only yet severe issue I am facing currently is due to youtoube URLs.
    When any YouTube link is opened, the video plays full screen with a cross button on top left. Clicking that button causes the app come back to same state before it was played, now clicking play causes crash and/or status bar becoming visible for rest of the App usage.

    The crash doesn’t happen all the time, but it does occur after few attempts.
    This can be reproduced relatively easily in iPhones.

    Please help me finding the solution for this issue.

    • This topic was modified 6 days, 23 hours ago by  3dprasad.
    #1304

    3dprasad
    Participant

    OK, To confirm the issue further, I imported this plugin in an empty project and opened few YouTube URLs through it. And its fairly easy to observe the crash.

    Just following the steps mentioned in above post, It crashes frequently.

    #1313
    Piotr
    Piotr
    Keymaster

    Hi,
    I’ve checked it and I am able to reproduce this issue. I see crashes coming from some internal Apple’s player.

    I see many folks are reporting the same issue (happening both in app’s internal browser and using player library created by Youtube):
    https://github.com/youtube/youtube-ios-player-helper/issues/322

    This happens using a UIWebView as well, it’s probably an issue with iOS 12

    Also: https://stackoverflow.com/questions/52868555/ios12-play-video-in-webview-crash

    Sadly, I have no idea for any workaround for this issue, as it’s strictly related to youtube internals. Somehow iOS 12 breaks their code.

    Only thing which comes to my mind is refactoring plugins’ code to use WKWebView instead of UIWebView – but that would require a lot of time. Are you able to help me with it?

    #1316

    3dprasad
    Participant

    Hi,
    Thanks for the update.
    Currently I am in the middle of a project due to which I might not get a dedicated time to actively work on this plugin. But instead if its about testing the plugin once in a while I can surely do so and provide you the feedback.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.