Reconfigure MediaSDK for two different video types. | Community
Skip to main content
atarian2049
Level 1
April 15, 2026
Solved

Reconfigure MediaSDK for two different video types.

  • April 15, 2026
  • 2 replies
  • 40 views

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?

Best answer by IamBatman

 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

2 replies

IamBatmanAccepted solution
Level 2
April 24, 2026

 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

manpreetkaur27
Adobe Support
Adobe Support
April 30, 2026

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

 

manpreetkaur27
Adobe Support
Adobe Support
April 26, 2026

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.