Skip to main content
atarian2049
Level 1
Apr 15, 2026 7:27 PM UTC
Solved

Reconfigure MediaSDK for two different video types.

Greetings.

I have a website that will have two different players on its main page. They are both being tracked with Adobe Analytics and both call upon the MediaSDK, providing a mediaConfig object with the tracking server, channel, appVersion, etc. However, the two different players have different playerName values in their mediaConfig objects. Because only one player loads first, the configuration including the playerName is set for the entire page. Configuring the SDK with the second player’s values returns an error from MediaSDK saying that it’s already been configured. So any and all analytics for both players are only being housed under the first video’s analytics values. Is there a way to set up a second MediaSDK instance or otherwise edit/reset the configuration if the second video player is active?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
IamBatmanAccepted solution
Level 2
Apr 24, 2026 3:57 PM UTC

 The playerName set in the mediaConfig object is used for every media session, because the SDK can only be configured once.

If you have multiple players on the same page, you can still track multiple playback sessions, but they will share the same configured playerName. For that reason, it is better to use a generic playerName and differentiate the players with playerID.

If you need a unique player identifier per playback session, that is better supported in a Web SDK / Edge implementation using playerId

3 replies

IamBatmanAccepted solution
Level 2
Apr 24, 2026 3:57 PM UTC

 The playerName set in the mediaConfig object is used for every media session, because the SDK can only be configured once.

If you have multiple players on the same page, you can still track multiple playback sessions, but they will share the same configured playerName. For that reason, it is better to use a generic playerName and differentiate the players with playerID.

If you need a unique player identifier per playback session, that is better supported in a Web SDK / Edge implementation using playerId

Translate
manpreetkaur27
Adobe Support
Adobe Support
Apr 30, 2026 7:59 PM UTC

Thanks for the suggestion, ​@IamBatman. I am marking it as the best answer.

 

Translate
manpreetkaur27
Adobe Support
Adobe Support
Apr 26, 2026 6:58 PM UTC

Hi ​@atarian2049 
I just wanted to follow up to see if ​@IamBatman ‘s response helped answer your query. If so, please consider marking it as a best answer.

Translate