Skip to content

Commit

Permalink
Update deps (#2166)
Browse files Browse the repository at this point in the history
* Add error msg

* Use mp4
  • Loading branch information
harsh-mn-yral authored Mar 25, 2024
1 parent b8009d1 commit fd283fb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ beforeNavigate(() => {
on:videoUnavailable={() => handleUnavailableVideo(index)}
{index}
{unavailable}
playFormat="hls"
playFormat="mp4"
inView={index == currentVideoIndex && $playerState.visible}
uid={post.video_uid} />
<svelte:fragment slot="controls">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ beforeNavigate(() => {
<VideoPlayer
on:loaded={() => removeSplashScreen()}
index={0}
playFormat="hls"
playFormat="mp4"
inView
uid={post.video_uid} />
<svelte:fragment slot="controls">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ function init() {
hls?.loadSource(src)
hls?.attachMedia(videoEl)
hls?.on(Hls.Events.ERROR, function (event, data) {
console.error('VideoError', { event, data })
if (data?.response?.code == 404) {
videoUnavailable = true
dispatch('videoUnavailable')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ onDestroy(() => clearMonitoring())
on:watchedPercentage={({ detail }) => recordView(detail)}
on:videoUnavailable={() => handleUnavailableVideo(index)}
{index}
playFormat="hls"
playFormat="mp4"
inView={index == currentVideoIndex && $playerState.visible}
uid={post.video_uid} />
</PlayerLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ onDestroy(() => clearMonitoring())
on:videoUnavailable={() => handleUnavailableVideo(index)}
{index}
{unavailable}
playFormat="hls"
playFormat="mp4"
inView={index == currentVideoIndex && $playerState.visible}
uid={post.video_uid} />
<svelte:fragment slot="betRoomInfo">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ let { video, me } = data
on:watchedPercentage={({ detail }) => recordView(detail)}
{unavailable}
index={0}
playFormat="hls"
playFormat="mp4"
inView
uid={video.video_uid} />
</PlayerLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ let { post, me } = data
{unavailable}
on:watchedPercentage={({ detail }) => recordView(detail)}
index={0}
playFormat="hls"
playFormat="mp4"
inView
uid={post.video_uid} />
<svelte:fragment slot="hotOrNot">
Expand Down

0 comments on commit fd283fb

Please sign in to comment.