Search Issue Tracker

By Design

Votes

0

Found in

5.5.0f3

Issue ID

873652

Regression

Yes

[iOS] Audio stops playing when app enters Background (with NatCam plugin)

iOS

-

Steps to reproduce:
1. Open User's attached project (Google Drive link)
2. Build and Run for iOS
3. On iOS device press home key (put app into background)
4. Launch app from the background

Expected behavior: Sound from the app continues to loop
Actual result: No sound from app after coming back from the background

Reproduced with: 5.6.0b8, 5.5.1p4.
Not reproduced with: 5.5.1f1.

Note: User is using NatCam Professional - WebCam API tool from the Asset Store.

Comments (1)

  1. PavelLU

    Apr 28, 2017 12:19

    There is simple fix to the issue: Put NatCam on pause when application loses focus.

    void OnApplicationFocus(bool hasFocus)
    {
    if (hasFocus) NatCam.Play();
    else NatCam.Pause();
    }

Add comment

Log in to post comment

All about bugs

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