fix for seek: cancel click events,  added some logic to get the right duration when casting