fix EmbeddedPlayer pause problem
reorganize video code