Search Issue Tracker

Fixed in future release

Votes

12

Found in

2017.2.0b3

Issue ID

934841

Regression

No

[Android] Video playback lags when activating and deactivating Input Field

Android

-

-

Priority: 3Not yet prioritized for a release

-

Severity: 2No workaround

To reproduce:

1. Download and open attached "repro934841.zip" project.
2. Build and run for android.
3. Focus on Input field and enter some text in there.
4. Close the keyboard.
5. Repeat steps 3-4 for about 5 times.

Expected result: Video plays without stuttering after closing the keyboard.
Actual result: Video starts to lag and eventually stops after closing the keyboard couple of times.

Reproduced with: 2017.3.0a1, 2017.2.0b4, 2017.1.0p2, 5.6.3f1.

Devices Under Test:

Samsung SM G925F (Galaxy S6 Edge)*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T760,
Build:samsung/zeroltexx/zerolte:7.0/NRD90M/G925FXXU5EQFC:user/release-keys

Google Nexus 5X*, OS:7.1.2, CPU:arm64-v8a, GPU:Adreno (TM) 418,
Build:google/bullhead/bullhead:7.1.2/N2G47W/3938523:user/release-keys

Sony C6603 (Xperia Z)*, OS:5.1.1, CPU:armeabi-v7a, GPU:Adreno (TM) 320,
Build:Sony/C6603/C6603:5.1.1/10.7.A.0.228/58103698:user/release-keys

Notes: Did not test on 5.5 since video player was released in 5.6. Did not reproduce on iPhone SE iOS 9.3.

Verified with: 2018.1.0a1, 2017.1.2p3

Comments (3)

  1. Fffa9111181a4908583ec2d1c30ba836?d=mm

    electroid

    Oct 24, 2017 23:12

    Still present in Unity 2017.3.0b6

  2. 6d872de745cdccab62222a30bf1e2e7a?d=mm

    Pavel_IG

    Oct 18, 2017 09:44

    I found out that stuttering in the video are affected by multithreading. if you select the checkmark *multithread rendering option in Unity when building the project, then the video will be stuttering by default. We suspect that each emerging of the keyboard after pressing an input field causes in a separate thread (more clicks on the input fields = more lags in the video, even if you call the same input field 10 times). Apparently these threads do not close after keyboard hiding and adversely affect the video quality.
    Exactly the same problem arises when you use www to download video in separate corutines. More corutines with www = more shuttering, even if all of them have already successfully downloaded the video and are no longer working.

  3. C7928f5a9bc2681ec8259bc4f80f5539?d=mm

    ville-lehtinen

    Oct 05, 2017 07:12

    We noticed that the issue gets fixed on refocusing on the application (use e.g. home, or multitask button).
    Would be interested in a workaround. Is there e.g. something on the Android side that could be called right before playing the video?

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.