add TSPlayer construnctor callback

add some null check