Common code for WF.Player