Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #267 from Belchy06/UE5.2
Browse files Browse the repository at this point in the history
Bring PR 266 to 5.2
  • Loading branch information
lukehb committed Jun 12, 2023
2 parents d587558 + 5811f32 commit 21f5685
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Frontend/ui-library/src/Application/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ export class Application {
? new FullScreenIconExternal(this._options.fullScreenControlsConfig.customElement)
// Or use the one created by the Controls initializer earlier
: controls.fullscreenIcon;
if (fullScreenButton) fullScreenButton.fullscreenElement = this.rootElement;
if (fullScreenButton) {
fullScreenButton.fullscreenElement = /iPhone|iPod/.test(navigator.userAgent) ? this.stream.videoElementParent.getElementsByTagName("video")[0] : this.rootElement;
}

// Add settings button to controls
const settingsButton : HTMLElement | undefined =
Expand Down
2 changes: 1 addition & 1 deletion Frontend/ui-library/src/UI/FullscreenIcon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ declare global {
*/
export class FullScreenIconBase {
isFullscreen = false;
fullscreenElement: HTMLElement;
fullscreenElement: HTMLElement | HTMLVideoElement;

_rootElement: HTMLElement;

Expand Down

0 comments on commit 21f5685

Please sign in to comment.