added functionality for when vid is html5 not flash