rive-android icon indicating copy to clipboard operation
rive-android copied to clipboard

Audio does not start after reopening the animation

Open stasSuhanov opened this issue 1 year ago • 9 comments

Description

I am using the latest version of SDK 10.3.1. I took your example with ping pong. The sound stops playing in the animation after minimizing and maximizing the application. The sound also stops playing when returning to the screen with animation.

Provide a Repro

  • Open app
  • Open animation
  • Close screen with animation
  • Open again screen with animation

Expected behavior

Sound should play.

Videos

Link to google driven with videos https://drive.google.com/drive/folders/1rfKxu8oDmt8Yt_zAhiM-dG4ljbSfklaM?usp=drive_link

Device & Versions (please complete the following information)

  • Device: Pixel 9 pro android 16, pixel 7a android 14, samsung s24 android 15, samsung fold 6 android 15

stasSuhanov avatar Aug 04 '25 08:08 stasSuhanov

This bug does not occur in version 10.2.1.

stasSuhanov avatar Aug 04 '25 15:08 stasSuhanov

Hi @stasSuhanov, is there any solution? facing the same issue

calvinkkw avatar Sep 02 '25 07:09 calvinkkw

Same issue occur in version 10.4.5

ckenken avatar Oct 14 '25 08:10 ckenken

I'm facing the same issue

sahilpocketfm avatar Oct 16 '25 13:10 sahilpocketfm

Same issue occur in version 10.5.0

wyl24k avatar Nov 09 '25 06:11 wyl24k

I believe this is fixed as of fa07a1f6 which is included in 11.0.0

nshurtz avatar Jan 13 '26 19:01 nshurtz

Hello, just popping in to ask if this issue is resolved as of our latest runtime version. If not, let me know and I can make sure this is acknowledged.

tylernij avatar Feb 13 '26 20:02 tylernij

@tylernij @nshurtz I have tested 11.0.0, 11.1.0, 11.1.1 and 11.1.2. Sounds works just once, but 10.2.1 works great, following what this comment says above. Also there is a big difference between 10.2.1 and 11.x.x which is we must update the project I work for with compileSdkVersion to 36 (from 35) and Android Gradle Plugin to 8.9.1 (from 8.6.0) and that's a no-no yet. We will try to downgrade Rive lib to 10.2.1 from 10.4.5. It seems like there are no major differences for now.

Grandpasoul avatar Feb 17 '26 04:02 Grandpasoul

@Grandpasoul Thanks for your investigation. I'm surprised to hear it's not working in the 11 series of releases. We'll try and get a reproduction to confirm. Are you using the legacy API? I would assume so given that you're mostly using older versions of the library, but just want to confirm. And for the setup, you have audio triggered by a listener in Rive and it only plays once, is that correct?

As for AGP and compile SDK versions, we may be able to specify minimum versions lower than our current, but no guarantees. I'll look into it.

ErikUggeldahl avatar Feb 17 '26 10:02 ErikUggeldahl