effects-runtime icon indicating copy to clipboard operation
effects-runtime copied to clipboard

refactor: event 系统

Open Sruimeng opened this issue 7 months ago • 2 comments

目前存在两个个问题,大家看一下 1、老接口是否保留 2、点击/消息元素 是挂在 Player 上还是挂在各自的 合成上,现在为了方便操作,用户直接使用元素的事件emit更简单一些,不需要进行名称的筛选

@yiiqii @wumaolinmaoan @RGCHN @liuxi150 确定后更新 threejs的变动 及 单测

Summary by CodeRabbit

  • New Features

    • Introduced event emission for player activities, such as state changes and errors.
    • Enabled user interactions within the player component with dedicated event listeners.
    • Added new methods for controlling playback state and handling events in the player.
    • Improved interactivity within the rendering process through enhanced event bindings.
  • Improvements

    • Enhanced event handling across the Player and related classes, promoting an event-driven architecture.
    • Deprecated outdated callback functions to streamline event management.
    • Refactored player creation and scene loading for improved modularity and clarity.
  • User Experience

    • Improved responsiveness and interactivity in visual effects handling.
    • Enhanced navigation structure for better access to interactive content.
    • Updated resource loading process for more effective scene management.

Sruimeng avatar Jul 10 '24 06:07 Sruimeng