MDL-67814 core_h5p: moved common methods from player to helper class