Repository navigation
観る画面: ブラウザが音声トラックを出さなくても、2本目の音声を選べるようにする - #840
Merged
Merged
Conversation
Chrome・Firefox は既定で video.audioTracks を出さないので、エンコード済みのファイルを そのまま読んでいると解説・副音声の切り替えが出なかった。2本以上あれば playback の名前で 並べ、2本目を選んだら、いまの位置からその場で流すほう (同じコーデックの詰め替えを先に) へ移る。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017wBP4MK6j3oBwqbn95wZ8H
|
Claude finished @5ym's task in 25s —— View job レビュー結果大きな不具合は見つかりませんでした。意図は明確で、既存の 確認したこと
要確認(任意・ブロッカーではありません)
セキュリティ面の問題はありません。音声 id はサーバが返した |
Collaborator
Author
|
レビューの3点について:
コードは変えずにマージします。 |
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.
何が起きていたか
解説放送つきの録画 (フジテレビのアニメ、音声は「日本語」「解説」の2本) で、観る画面に音声の切り替えが出ず、解説を選べないという報告がありました。
-map 0:a。トラック名も番組表どおり)video.audioTracksから作っていたvideo.audioTracksを出さない (Chrome は実験的な機能の奥、Firefox はmedia.track.enabledが既定でオフ)。そのため一覧が空になり、切り替えごと出ていなかった。Chrome で Matroska をそのまま読める録画 (ふつうの AV1 の録画) はみなこの形直し方
audioTracksを出さず、2本以上入っていて、その場で流すほう (/stream) へ移れるなら、playbackの音声の名前で並べる/stream?audio=。サーバが選んだ1本を流す)。移る先はts/playback.tsのstreamForAudio— 同じコーデックの詰め替え (サーバは軽い) を先に、無ければ MSE が受け取れる変換chooseCodec)audioTracksを出すブラウザは、これまでどおりファイルの中で切り替えるテスト
streamForAudioの単体テスト (同じコーデックの詰め替えを先に / 受け取れなければ変換 / 何も無ければ null)bun run check、単体テスト全部、biome🤖 Generated with Claude Code
https://claude.ai/code/session_017wBP4MK6j3oBwqbn95wZ8H