Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug I found a serious error in the video player component.

Discussion in 'Audio & Video' started by musicen, Jun 19, 2023.

  1. musicen

    musicen

    Joined:
    Jun 9, 2023
    Posts:
    1
    Unity version is 2021.3.15f1.

    1. Start the following work in the first scene.
    2. Add a VideoPlayer component to the Quad object.
    3. Change the source of the VideoPlayer component to URL.
    4. Apply the url of any streaming video and play it.
    (I used the sample video below: https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4)
    5. Add function to change scene.
    6. Build with Android
    7. You can check that the streaming video is playing on your mobile phone.
    8. Change the scene to the scene created in step 5.
    9. Apps die.

    Currently, this phenomenon is occurring on unspecified Android devices.
    The mobile phone models I have are note8, fold2, and Zfilp, and the app dies the same on models other than note8.

    Apps don't die on iOS.

    Comments on this phenomenon are needed.
     
  2. tspersonal

    tspersonal

    Joined:
    Jul 26, 2019
    Posts:
    9
    Yes, I have the same problem.


    When I call VideoPlayer.Stop(), enable = false, Destroy(), etc., it crashes on Android.


    My Unity version is 2019.4.40. I found that this problem started on 2019.4.38.
     
  3. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    499
    Last edited: Jul 21, 2023
  4. tspersonal

    tspersonal

    Joined:
    Jul 26, 2019
    Posts:
    9
  5. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    499
    Unfortunately, no. The 2019 support ended 1 year ago. If it helps you, the bug was introduced in 2019.4.37f1 so 2019.4.36f1 should be safe.
     
  6. tspersonal

    tspersonal

    Joined:
    Jul 26, 2019
    Posts:
    9
    okk. That's the only way to go.

    And To correct the bug was introduced in 2019.4.38f1 so 2019.4.37f1 must be safe. (It's been tested)