Bug 258713 - vp8 and vp9 blob can not be played in <video>
Summary: vp8 and vp9 blob can not be played in <video>
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 16
Hardware: Mac (Apple Silicon) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-06-29 23:34 PDT by Jozef Chutka
Modified: 2023-12-30 07:36 PST (History)
6 users (show)

See Also:


Attachments
vp9 video (175.08 KB, video/webm)
2023-06-29 23:34 PDT, Jozef Chutka
no flags Details
demo html (341 bytes, text/html)
2023-06-29 23:35 PDT, Jozef Chutka
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jozef Chutka 2023-06-29 23:34:01 PDT
Created attachment 466881 [details]
vp9 video

A vp8 and vp9 video can be played in <video> element, however when the very same video is loaded via URL.createObjectURL(blob) video throws MediaError with code=4.

- I have tried, video.src, video.srcObject and source element appended to video failed in all cases
- Interestingly blob-s can be played as long as these are h264 or hevc in mp4.

demo code

```html
<body>
<video src="out9.webm" controls></video>
<script>
(async ()=>{
const blob = await (await fetch("out9.webm")).blob();
const video = document.createElement("video");
video.controls = true;
video.addEventListener("error", () => console.log(video.error));
video.src = URL.createObjectURL(blob);
document.body.append(video);
})()
</script>
```

see attachments for demonstration asset
Comment 1 Jozef Chutka 2023-06-29 23:35:36 PDT
Created attachment 466882 [details]
demo html
Comment 2 Radar WebKit Bug Importer 2023-07-03 07:31:18 PDT
<rdar://problem/111685950>