Files
jiecheng-business/test/voice_helper/jump_film.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

28 lines
830 B
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
# jump_film.sh - 单片跳转测试
# 用法: jump_film.sh [filmId] [filmName] [autoPlay]
# filmId 默认 film-demo-001
# filmName 默认等于 filmId(仅一个参数时避免重复输入)
# autoPlay true / false,默认 true
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# shellcheck disable=SC1091
source "${SCRIPT_DIR}/lib/common.sh"
require_adb
check_receiver_exists
FILM_ID="${1:-film-demo-001}"
# 缺省 filmName 时与 filmId 同名,避免用户重复输入
FILM_NAME="${2:-${FILM_ID}}"
AUTO_PLAY="${3:-true}"
print_header "单片跳转 JUMP/FILM"
PAYLOAD=$(build_jump_payload FILM \
"filmId=${FILM_ID}" \
"filmName=${FILM_NAME}" \
"autoPlay=${AUTO_PLAY}")
send_voice_broadcast "JUMP" "${PAYLOAD}"
log_ok "预期进入 VideoDetailActivity(autoPlay=${AUTO_PLAY})"