Fixed playback issue when adding multiple media

This commit should fix an issue with autoplay when multiple media are
added to a player by calling `addMedia`. See issue #25 for more detail.