Media event working-ish code

code adjusted for minimal functionality at media event