Repository navigation
chore: Merge V4.0.x develop into v4.0.x-release again - #26050
Merged
Merged
Conversation
The toolbar decides per player whether to show BBB's volume slider and YouTube's subtitles button by comparing the player's class name (constructor.name) with "YouTube", "Vimeo" and so on. Production builds minify class names, so the check never matched there: - BBB showed its volume slider for players whose volume it can't control (Vimeo, Facebook, ArcPlayer), next to the player's own volume control. - YouTube's subtitles button never appeared. Dev builds keep class names, which is why this only showed in production. Every react-player player, built-in or custom, has a static displayName, which survives minification. Read it when the player is ready and keep it in state, so the toolbar renders with it. The old value was read from a ref during render, so it was also missing until some later render.
The subtitles button only changed its own tooltip. The GraphQL migration (d2f6fc6) kept the button but dropped what it did. Restore the original toggle: turning it on loads YouTube's captions module for viewers, and turning it off unloads it. The button also looked the same in both states; only its hidden tooltip changed. Show the state by color: white when subtitles are off, blue when they are on. Since the previous commit, the button also shows in production builds.
On phones the leave menu covered the whole screen for a choice of one or two items. Render it as the same compact popover the nav bar options menu already uses.
The subtitles button only tracked its own clicks, but YouTube turns captions on by itself: the player is given the viewer's language (cc_lang_pref), so any video with captions in it starts with them on. The button then showed "off" while captions were on, and a new player (the reload button, a presenter change) reset what it showed. Read the state from the player instead: when a YouTube player is ready, and whenever its captions module loads or unloads (onApiChange), the button follows whether the player shows a caption track. Also drop the presenter check from the toggle: the toolbar is only shown to viewers, so it was always true.
When the start/pause confirmation shows, the recording button collapsed back to its icon and lost its tie to the confirmation. Hold it expanded from the moment the confirmation appears until one of its buttons - Cancel, or Record/Pause - is clicked, then return to the usual expand/collapse behaviour. The hold is added on top of the existing rules, which stay untouched, and uses logical margins because a [dir="rtl"] & rule would outlive it. The confirmation is no longer draggable, so a swipe cannot dismiss it without releasing the hold.
Whenever the recording button shows its label, the tooltip only repeats the same text. Drop it then, and keep it where the label is not drawn: on phones, in the idle circle of small viewports, and with the collapse on under touch input. A custom viewer tooltip that says something else is kept.
…ubtitles fix(external-video): recognize the player in production builds, restore the YouTube subtitles toggle
fix(nav-bar): recording button and mobile leave menu polish
Contributor
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 8
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch was previously deployed
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.
Include #25994 and #25999 for BBB 4.0.0