找回密码
 立即注册

微信扫码登录

搜索
查看: 6158|回复: 18

[经验分享] 分享一个利用vlc实现Android和ios弹出摄像头全屏画面的方法

[复制链接]

0

主题

21

回帖

256

积分

中级会员

积分
256
金钱
235
HASS币
0
发表于 2023-12-7 19:56:48 来自手机 | 显示全部楼层
大佬能写详细一点吗?
通过Android Debug Bridge集成将设备接入ha
这个怎么操作的?
回复

使用道具 举报

0

主题

21

回帖

256

积分

中级会员

积分
256
金钱
235
HASS币
0
发表于 2023-12-9 20:17:26 | 显示全部楼层
郭子漳 发表于 2023-12-7 16:13
他的帖子里写的可以弹出视频流,但是我没成功,画面是空白的

朋友你用PIPUP能接收到推流弹窗吗?
帮我看下代码对不对
rest_commands.yaml文件中
pipup_image_on_tv:
  url: http://192.168.1.2:7979/notify
  content_type: 'application/json'
  verify_ssl: false
  method: 'post'
  timeout: 20
  payload: >
    {
      "duration": {{ duration | default(20) }},
      "position": {{ position | default(0) }},
      "title": "{{ title | default('') }}",
      "titleColor": "{{ titleColor | default('#50BFF2') }}",
      "titleSize": {{ titleSize | default(10) }},
      "message": "{{ message }}",
      "messageColor": "{{ messageColor | default('#fbf5f5') }}",
      "messageSize": {{ messageSize | default(14) }},
      "backgroundColor": "{{ backgroundColor | default('#0f0e0e') }}",
      "media": {
        "image": {
          "uri": "{{ url }}",
          "width": {{ width | default(640) }}
        }
      }
    }


pipup_url_on_tv:
  url: http://192.168.1.2:7979/notify
  content_type: 'application/json'
  verify_ssl: false
  method: 'post'
  timeout: 20
  payload: >
    {
      "duration": {{ duration | default(20) }},
      "position": {{ position | default(0) }},
      "title": "{{ title | default('') }}",
      "titleColor": "{{ titleColor | default('#50BFF2') }}",
      "titleSize": {{ titleSize | default(10) }},
      "message": "{{ message }}",
      "messageColor": "{{ messageColor | default('#fbf5f5') }}",
      "messageSize": {{ messageSize | default(14) }},
      "backgroundColor": "{{ backgroundColor | default('#0f0e0e') }}",
      "media": {
        "web": {
          "uri": "{{ url }}",
          "width": {{ width | default(640) }},
          "height": {{ height | default(480) }}
        }
      }
    }

调用 上的服务

alias: 推送到电视
sequence:
  - service: webrtc.create_link
    data:
      open_limit: 1
      time_to_live: 60
      entity: camera.192_168_1_22
      link_id: '{{ link_id }}'   
  - service: rest_command.pipup_url_on_tv
    data:
      title: 标题
      message: 消息
      width: 640
      height: 480
      url: 192.168.1.3:8123/webrtc/embed?url={{ link_id }}&webrtc=false

我的电视PIPUP收不到推送
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-10-13 03:24 , Processed in 0.046672 second(s), 8 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表