added timer to stop video playback when material is not actively being used