Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    tplayerdemo 可以在后台播放吗?

    MR Series
    tplayerdemo d1
    1
    1
    919
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tigger
      tigger LV 7 last edited by whycan

      我想添加到开机脚 /etc/init.d/play

      #!/bin/sh /etc/rc.common
      # Copyright (C) 2006 OpenWrt.org
      
      START=88
      STOP=88
      USE_PROCD=1
      
      start_service() {
              /usr/bin/tplayerdemo /mnt/SDCARD/bh.mp4 > /dev/console &
      }
      
      shutdown() {
              echo stop
      }
      

      启动后,在后台自动播放 mp4 文件, 但是发现运行后就退出了。

      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策