p-stream/src/components/player/atoms
Pas b6be227ab3 Inject popup ad for xprime sources
Xprime's own site has ads, but people have found pstream (which doesnt have ads) and moves here since there are no ads. Xprime is losing money and is finding it difficult to support the proxies and servers.

clean up ad for xprime when switching sources or destroying player

new method for tracking if ad is shown

Revert "Track XPrime ad script load state in player"

This reverts commit c50bdd9ad8.

Track XPrime ad script load state in player

Adds xprimeAdScriptLoaded state and setter to the player store. Updates XPrimeAdOverlay to only show when the ad script is loaded, and base display logic to set the load state based on script events. This ensures the overlay only appears when the ad script is ready.

remove infinite loop

When conditions are met → show becomes true → timer starts
Timer fires after 5s → show becomes false
Effect re-runs (because show changed) → show becomes true again → new timer starts
Loop repeats infinitely

Refactor XPrime ad injection so it loads when the source changes
2025-11-30 11:14:03 -07:00
..
settings simplify scrolling and cleanup some bugs 2025-11-26 12:59:40 -07:00
Airplay.tsx airplay button 2023-10-19 14:16:10 +02:00
AutoPlayStart.tsx Some shoepolish for movie-web 2023-11-30 21:25:28 +01:00
Captions.tsx Add captions button back 2024-08-04 19:55:35 +00:00
CastingNotification.tsx Fix casting (#49) 2025-10-12 11:16:16 -06:00
Chromecast.tsx If cast framework is not available (e.g., on Safari), hide the button 2025-10-14 17:27:17 -06:00
Episodes.tsx Revert "feat: hide the arrow buttons on scroll lists when at either end of the list (#61)" 2025-11-12 12:07:57 -07:00
EpisodeTitle.tsx RTL text 2023-12-16 15:27:42 +01:00
Fullscreen.tsx bottom control layout + fullscreen + hovering 2023-10-01 17:34:37 +02:00
index.ts We have short attention spans 2025-05-10 22:19:12 +01:00
LoadingSpinner.tsx fix spinner sizings 2023-11-20 19:03:48 +01:00
NextEpisodeButton.tsx add lastSuccessfulSource feature 2025-11-02 22:10:48 -07:00
Pause.tsx hide pause when loading 2023-11-30 20:05:49 +01:00
Pip.tsx Fix type error, only show pip if pip is available 2023-10-21 20:17:18 +02:00
ProgressBar.tsx Handle backtick command earlier + Ignore commands when cmd/atl is pressed + prevent -0.0 as subtitle delay (#62) 2025-11-12 12:02:41 -07:00
Seek.tsx fix double click to seek build 2025-10-10 13:58:37 -06:00
Settings.tsx simplify scrolling and cleanup some bugs 2025-11-26 12:59:40 -07:00
SkipIntroButton.tsx add skip confidence 2025-11-10 14:52:31 -07:00
Skips.tsx add double-tap to seek feature 2025-10-10 20:50:25 +04:00
SpeedChangedPopout.tsx make speed popout smaller 2025-08-24 22:11:50 -06:00
SubtitleDelayPopout.tsx add captions delay key shortcut 2025-02-27 21:33:06 -07:00
Time.tsx Use 12 hour clock + add box around time (#58) 2025-11-01 17:21:10 -06:00
Title.tsx copy and improve player title / info 2025-02-05 20:14:21 -07:00
UnreleasedEpisodeOverlay.tsx add date to unreleased overlay 2025-04-17 14:49:38 -06:00
Volume.tsx add adaptable volume icons 2024-06-11 20:43:58 -07:00
VolumeChangedPopout.tsx add captions delay key shortcut 2025-02-27 21:33:06 -07:00
WatchPartyStatus.tsx make watchparty use new nickname instead of account id 2025-11-17 13:08:58 -07:00
Widescreen.tsx PWA merged @SEP25 2024-09-25 21:11:21 -06:00
XPrimeAdOverlay.tsx Inject popup ad for xprime sources 2025-11-30 11:14:03 -07:00