Nikunj Chaklasiya
Nikunj Chaklasiya

Reputation: 818

what is the solution for -5 Error code in mediaView using SceneGraphDeveloperExtensions

I am using this audio_mode in SceneGraphDeveloperExtensions. It's playing fine.

But When I first played, It was playing fine. But When I pressed back once and the second time I tried to play, it' gave the -5 error code like the one below.

enter image description here

Does anyone know what was the solution for this?

Upvotes: 0

Views: 36

Answers (1)

vbuchii
vbuchii

Reputation: 172

The error message indicates that you're trying to open a new Player instance when the previous one wasn't closed, which is forbidden on Roku. Roku allows only one Player instance at a time. To resolve this issue, you need to ensure that the previous Player is closed before opening a new one.

Here are the steps to ensure proper handling of the Player instance:

  1. Stop and Close the Previous Player: Make sure to stop and close the previous Player instance before creating a new one.
  2. Check for Remaining References: If the issue persists, it might indicate that the previous Video node is still active. Check for any references to it and ensure they are properly cleared.

Upvotes: 0

Related Questions