added volume control and mediaEnd event