Files
jiecheng-business/test/voice_helper/skyworth_vod.sh
freeboss b7b5518834 feat: dev-5.1 分支基线(v1.3.35 发版后代码 + 5.1 声道改造文档)
- 以 main(ccc65af) 为基线提交当前工作区代码
- 新增 5.1 声道改造文档两份
- .gitignore 补充 .vscode/、.screenshots/
2026-11-02 19:25:12 +08:00

26 lines
1.1 KiB
Bash
Raw Permalink 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.

#!/usr/bin/env bash
# skyworth_vod.sh - 创维 VOD 语音点播正常路径测试
# 模拟创维 SDK 投递 RecognizeResult.vod 广播(白名单 sender + videoList),
# 验证链路:SkyworthVoiceAdapter -> SkyworthVodParser -> OPEN_FILM_DETAIL ->
# DefaultPageNavigator.searchAndOpenFilmDetail()
# 用法: skyworth_vod.sh [filmName] [senderPkg]
# filmName 默认 "镖人"(需是片库中真实存在的片名,否则走 SearchActivity 兜底)
# senderPkg 默认白名单 com.skyworth.smarthotel
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# shellcheck disable=SC1091
source "${SCRIPT_DIR}/lib/common.sh"
require_adb
check_skyworth_adapter_exists
FILM_NAME="${1:-镖人}"
SENDER_PKG="${2:-${DEFAULT_SKYWORTH_SENDER}}"
print_header "创维 VOD 点播(filmName=${FILM_NAME})"
send_skyworth_broadcast "${FILM_NAME}" "${SENDER_PKG}"
log_ok "预期进入 VideoDetailActivity(影片名命中时)或 SearchActivity(无命中兜底)"
log_info "验证方法:观察前台页面,或 logcat 过滤 tag=VoiceCommand 查看 parsed 日志"