added play and embedding support