Add some actions for prePlayLayer and postPlayLayer

Signed-off-by: khxkhx321 <khxkhx321@163.com>