Additional code for embedded player