moved type detection into video player obj