Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
#81 add video issue doc in live-design-demo section
Browse files Browse the repository at this point in the history
  • Loading branch information
You-J committed Nov 2, 2021
1 parent 3e3897c commit 1e48820
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Why use html5 video instead of react-player in this place?

_This document is explaining how to use pure HTML5 video instead of react-player, which is the video player used in the project only in the live-design-demo section._

While updating to ios 15 version, some video stuttering in safari was found. For example, let's say you are using the tag below.

```typescript
<ReactPlayer
url={require("public/videos/video.mp4")}
loop
playing
muted
playsinline
config={{
file: {
attributes: {
preload: "auto",
},
},
}}
/>
```

All use the same code as in the example, except for the url, but it has been confirmed that the problem occurs only in the specific location _(the video play only when the video is not visible on the screen)_.

I've tried several tests, such as changing the parent's position, but it's still there. But when I used the video tag in pure html5 there was no problem.
Below is an example used.

```typescript
<video
src={require("public/videos/video.mp4")}
autoPlay
muted
loop
playsInline
preload="auto"
/>
```

So, until the video problem is stable in ios 15 safari, the problematic video from `live-design-demo` is replaced with pure html5 `video` tag.

<!--
๊ทธ๋ฆฌํ•˜์—ฌ ios 15 safari์—์„œ ๋น„๋””์˜ค ๋ฌธ์ œ๊ฐ€ ์•ˆ์ •๋˜๊ธฐ ์ „๊นŒ์ง€๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ๋Š” live-design-demo ์˜ ๋น„๋””์˜ค๋Š” ์ˆœ์ˆ˜ html5 ๋น„๋””์˜ค ํƒœ๊ทธ๋กœ ๋Œ€์น˜ํ•ฉ๋‹ˆ๋‹ค. -->

0 comments on commit 1e48820

Please sign in to comment.