change setEnvironment method and ios processes

if ios , player must not change dom
if iOS , player may not set CenterPlayButton