home-assistant / home-assistant/android

Problem with video in notify

Open
#3,470 21 comments 3 reactions 0 assignees View on GitHub
bug notifications
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

**Home Assistant Android app version(s):**
beta-9876-e592c334-full

**Android version(s):**
13

**Device model(s):**
Pixel 6 Pro

**Home Assistant version:**
Home Assistant 2023.3.6

**Last working Home Assistant release (if known):**
Never

**Description of problem, include YAML if issue is related to notifications:**

I want to attach a video in a message. I use this code to create a video when the front door opens and the alarm is on.

```
- service: camera.record
target:
entity_id: "camera.grovkok"
data:
filename: '/media/cctv_grovkok/video.mp4'
duration: 30
```
That works perfect and I get a video when I trigger it. Then I use this code to send the video to my android phone. I have a delay so the video will stored.

```
- delay:
seconds: 59
- service: notify.mobile_app_pixel_6_pro
data:
message: Någon kom in
data:
url: "/lovelace/camera"
priority: high
video: '/media/local/cctv_grovkok/video.mp4'
```

I get the message but no video. The logg shows this.

```
04-10 18:22:55.647 10826 10826 D MessagingService: Found 0 frames for video notification
04-10 18:22:55.650 10826 10826 D MessagingService: Show notification with tag "null" and id "1811561647"
```

If I [convert the video on the internet](https://video-converter.com/) and put I back in the same folder and trigger the automation I get the video in the message. I converted the file from mp4 to mp4. Logg show this.

```
04-10 18:47:57.030 10826 10826 D MessagingService: Found 19 frames for video notification
04-10 18:47:57.064 10826 10826 D MessagingService: Show notification with tag "null" and id "1812946270"
```

**Companion App Logs:**
I get the message but no video. The logg shows this.

```
04-10 18:22:55.647 10826 10826 D MessagingService: Found 0 frames for video notification
04-10 18:22:55.650 10826 10826 D MessagingService: Show notification with tag "null" and id "1811561647"
```

If I [convert the video on the internet](https://video-converter.com/) and put I back in the same folder and trigger the automation I get the video in the message. I converted the file from mp4 to mp4. Logg show this.

```
04-10 18:47:57.030 10826 10826 D MessagingService: Found 19 frames for video notification
04-10 18:47:57.064 10826 10826 D MessagingService: Show notification with tag "null" and id "1812946270"
```

**Screenshot or video of problem:**

**Additional information:**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.