cuifengcn / TAICHI-flet

基于flet的一款windows桌面应用,实现了浏览图片、音乐、小说、漫画、各种资源的功能。
MIT License
3.5k stars 394 forks source link

问题 #68

Open AthenaRoland opened 3 months ago

AthenaRoland commented 3 months ago

请教一下作者怎么实现音乐播放进度条的异步更新

cuifengcn commented 3 months ago

Audio有回调函数

def __init__(
        self,
        src: Optional[str] = None,
        src_base64: Optional[str] = None,
        autoplay: Optional[bool] = None,
        volume: OptionalNumber = None,
        balance: OptionalNumber = None,
        playback_rate: OptionalNumber = None,
        release_mode: Optional[ReleaseMode] = None,
        on_loaded=None,
        on_duration_changed=None,
        on_state_changed=None,
        on_position_changed=None,
        on_seek_complete=None,
        #
        # Control
        #
        ref: Optional[Ref] = None,
        data: Any = None,
    ):
...
deng0685 commented 3 months ago

你的来信我已收到