Skip to content

Commit

Permalink
Fix DPlayer not playing in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlika committed Jan 11, 2024
1 parent 1be6eb2 commit 0fac53c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ function App() {
const player = new DPlayer({
container: containerRef.current,
video: {
url,
url: "",
type: "customHls",
customType: {
customHls: (video: HTMLVideoElement) => {
const hls = new window.Hls(engine.getConfig());
engine.setHls(hls);
hls.loadSource(video.src);
hls.loadSource(url);
hls.attachMedia(video);
hlsInstance.current = hls;
},
Expand Down

0 comments on commit 0fac53c

Please sign in to comment.