Commit Graph
11 Commits
Author SHA1 Message Date
samartnik dd0d6e9831 [Android] Changes condition for PIP script injection (#31065) 2025-09-08 07:07:22 -04:00
Simone Arpe 1fd0726cb7 Improve Picture-in-picture transition algorithm (#30934)
* Move BraveYouTubeScriptInjectorNativeHelper to main app layer so it can reference BraveActivity

* Save boolean flag in activity bundle

* Add small delay to let the layout pass to complete
2025-08-29 19:24:06 +02:00
AlexeyBarabash be9e624bff [cr140][Android] Disabled YouTubeScriptInjectorBrowserTest.MultipleFullscreenCalls
This test is flaky on CI and succeedes on local env.

Follow-up issue:
https://github.com/brave/brave-browser/issues/48430
2025-08-20 01:07:05 +03:00
AlexeyBarabash 75d47f9af9 [cr140][Android] Fixed missing includes for WebContens 2025-08-19 19:54:17 +01:00
Simone Arpe 9c848af0b5 Fix Picture-in-Picture orientation issues for YouTube videos (#30578)
This fix ensures that YouTube videos on Android can properly handle the transition from fullscreen playback to Picture-in-Picture mode without interference from automatic screen orientation changes.
2025-08-12 13:59:08 +02:00
Simone Arpe d467850cbc Improve Picture-in-Picture Logic for YouTube Videos on Android (#30548)
Refactors and improves the Picture-in-Picture (PiP) functionality for YouTube videos in Brave Android browser.
The changes focus on better integration, cleaner architecture, improved reliability, and proper handling of Android system settings.
2025-08-11 15:23:45 +02:00
Simone Arpe ce1125a96b Improve picture in picture transition (#30330)
* Fix OnFullscreenScriptComplete never called

* Reset fulscreen requests

* Improve fullscreen script

* Ressume media session when entering fullscreen

* Exit fullscreen when leaving picture in picture mode

* Apply code formatting

* Fix tests
2025-07-29 20:13:24 +02:00
Simone Arpe 6ed3822029 Improve YT video check (#30156) 2025-07-22 19:56:20 +02:00
Simone Arpe 6e1791f50c Add PIP icon in omnibox (#29431) 2025-07-17 21:17:54 +02:00
cdesouza-chromium 34c2028c47 [IWYU] Fix includes for utf conversion functions (#29709)
This PR does IWYU for the following files:

 - base/strings/utf_string_conversions.h
 - base/i18n/number_formatting.h

This is a mechanical change, and for more details, check the issue
description.

Resolves https://github.com/brave/brave-browser/issues/47060
2025-06-23 22:44:37 +01:00
Simone Arpe e5be5e25ec Rename background_video_player_tab_helper into youtube_script_injector_tab_helper (#29233)
* Make `IsBackgroundVideoPlaybackEnabled` method more readable

* Rename background_video_player_tab_helper into youtube_script_injector_tab_helper

* Apply code formatting
2025-05-29 13:51:50 +02:00