WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

HTML page support (for PiPup and others)

Open AlexxIT opened this issue 4 years ago • 14 comments

Application: https://github.com/rogro82/PiPup Video example: https://www.youtube.com/watch?v=j2tCamSDm7o

configuration.yaml

rest_command:
  pipup:
    url: http://192.168.1.123:7979/notify
    content_type: 'application/json'
    verify_ssl: false
    method: 'post'
    timeout: 20
    payload: >
      {
      "duration": "{{ duration }}",
      "position": "{{ position }}",
      "title": "{{ title }}",
      "titleColor": "{{ titleColor }}",
      "titleSize": "{{ titleSize }}",
      "message": "{{ message }}",
      "messageColor": "{{ messageColor }}",
      "messageSize": "{{ messageSize }}",
      "backgroundColor": "{{ backgroundColor }}",
      "media": { "{{ mediaType }}": {
        "uri": "{{ uri }}", "width": "{{ width }}"
      }}
      } 

service call:

service: rest_command.pipup
data:
  title: ''
  message: Someone at the door...
  backgroundColor: '#DD000000'
  duration: 20
  messageColor: '#FFFFFF'
  messageSize: 20
  position: 2
  titleColor: '#50BFF2'
  titleSize: 15
  mediaType: web
  uri: 'http://192.168.1.111:8081'
  width: 640

AlexxIT avatar Apr 26 '21 08:04 AlexxIT

Added in v1.4.0. More info: https://github.com/AlexxIT/WebRTC#cast-or-share-stream

AlexxIT avatar Apr 28 '21 07:04 AlexxIT

I cant seem to get the webrct video link to work on this anymore. Anything change?

jmacul2 avatar Aug 10 '21 07:08 jmacul2

@jmacul2 link should work

AlexxIT avatar Aug 10 '21 18:08 AlexxIT

This doesn't seem to work for me, only seeing a black screen on the PiPup notification. Based on the open issue on the PiPup github it looks like PiPup doesn't support javascript, but could easily be modified to do so as this person has done.

gmcmicken avatar Oct 03 '21 02:10 gmcmicken

It doesn't look the the author of PiPup is active, as the PR to enable javascript has been open for some time, unmerged, and it's just a tiny configuration change. I've forked and built the APK here for the interim.

gmcmicken avatar Oct 03 '21 19:10 gmcmicken

@gmcmicken @madjam002

When I use lnk generated by WebRTC I`ve got an error net::ERR_CLEARTEXT_NOT_PERMITTED on popup window

Could you please suggest something?

sapdemon avatar Oct 14 '21 11:10 sapdemon

@gmcmicken @madjam002

When I use lnk generated by WebRTC I`ve got an error net::ERR_CLEARTEXT_NOT_PERMITTED on popup window

Could you please suggest something?

You need to use SSL I believe (https).

gmcmicken avatar Oct 14 '21 18:10 gmcmicken

@gmcmicken @madjam002 When I use lnk generated by WebRTC I`ve got an error net::ERR_CLEARTEXT_NOT_PERMITTED on popup window Could you please suggest something?

You need to use SSL I believe (https).

Thank you, now it works!

sapdemon avatar Oct 15 '21 18:10 sapdemon

It would be great to disable https need.

adrianmihalko avatar Feb 01 '23 21:02 adrianmihalko

Yes disabling https would be perfect

athyanop avatar Apr 18 '23 09:04 athyanop

Finally APK without https.

https://community.home-assistant.io/t/a-short-guide-for-setting-up-tv-pip-notifications-with-pipup/537084

athyanop avatar Apr 18 '23 19:04 athyanop

The PIP window causes the current media to pause. Any way to stop this from happening? Ideally the content on the TV would continue playing when the PIP window starts its camera stream. Or at the very least it should resume playing content when the PIP window disappears.

that1guy avatar Oct 04 '23 05:10 that1guy

The PIP window causes the current media to pause. Any way to stop this from happening? Ideally the content on the TV would continue playing when the PIP window starts its camera stream. Or at the very least it should resume playing content when the PIP window disappears.

It doesn't affect what the TV is doing on mine at all.

gmcmicken avatar Oct 04 '23 15:10 gmcmicken