fix: HLS.js fallback으로 미리보기 동작 범위 확대#70
Open
Hyukya wants to merge 2 commits into
Open
Conversation
Owner
|
감사합니다! HLS.js fallback의 경우에는 확장 프로그램 스토어 정책 상 외부 스크립트를 불러올 수 없고 (함께 배포하면 되긴 합니다) 치지직이 제공하는 플레이어 외 다른 플레이어로 재생하는 것에 대한 우려가 있어 일단 클래스 관련 부분만 cherry-pick하여 co-author로 업데이트 해두겠습니다. 다시 한번 감사드립니다. |
jebibot
force-pushed
the
fix/show-preview
branch
from
June 20, 2026 08:50
80bd37a to
51c3235
Compare
Contributor
Author
|
치지직에서 미리보기 플레이어 그대로 사용하는 방식도 병행하여 작업을 계속 진행했지만 어려운 부분이 있네요. |
Hyukya
marked this pull request as draft
June 20, 2026 13:33
Hyukya
marked this pull request as ready for review
June 20, 2026 14:48
Contributor
Author
|
일단 해당 변경은 함께 배포하는 방식으로 작업했습니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
라이브 미리보기가 동작하도록 개선했습니다.
변경 사항
HLS.js fallback 추가
문제:
라이브 미리보기는 내부적으로 치지직 번들의 CorePlayer(webpack
module 49588)를 사용합니다. 그런데 이 모듈은 라이브 페이지
(
/live/)에 진입한 적이 없으면 로드되지 않아, 아래 섹션에서hover 시 미리보기가 동작하지 않았습니다.
해결:
CorePlayer 로드 실패 시 HLS.js를 로드해
livePlayback.media[HLS].path의 m3u8 URL로 직접 재생하는fallback 로직을 추가했습니다.