Auto-generated id's are unique to the document

Fixes duplicate key error by ensuring the media player's auto-generated container id is unique to the document.