scense_demo/demo/__init__.py
2026-08-29 21:10:23 +08:00

25 lines
884 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
"""demo —— W-07 实时演示模块Python 包)。
所有业务函数必须在此导出,否则 .dspy 调用报 NameError。
"""
from .demo import (
start_demo, stop_demo, switch_camera, pause_demo,
update_demo_entity, get_entity_attrs, hotload_script,
presence_join, presence_leave, set_fullscreen,
get_demo_state, list_active_sessions,
DemoParamError, DemoNotFoundError, DemoDuplicateError, DemoStateError,
DEMO_CAMERA_MODES,
)
from .init import load_demo
__all__ = [
'load_demo',
'start_demo', 'stop_demo', 'switch_camera', 'pause_demo',
'update_demo_entity', 'get_entity_attrs', 'hotload_script',
'presence_join', 'presence_leave', 'set_fullscreen',
'get_demo_state', 'list_active_sessions',
'DemoParamError', 'DemoNotFoundError', 'DemoDuplicateError', 'DemoStateError',
'DEMO_CAMERA_MODES',
]