Skip to content

Commit

Permalink
Merge pull request #691 from insidegui/ah/public-pip
Browse files Browse the repository at this point in the history
Use AVPictureInPictureController for supporting picture-in-picture
  • Loading branch information
insidegui authored Jun 8, 2023
2 parents f918935 + 217ad3f commit 78b29db
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 317 deletions.
69 changes: 0 additions & 69 deletions PlayerUI/Controllers/PUIPictureContainerViewController.swift

This file was deleted.

39 changes: 0 additions & 39 deletions PlayerUI/PiP Support/PIP.h

This file was deleted.

2 changes: 0 additions & 2 deletions PlayerUI/PlayerUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ FOUNDATION_EXPORT double PlayerUIVersionNumber;
FOUNDATION_EXPORT const unsigned char PlayerUIVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <PlayerUI/PublicHeader.h>

#import <PlayerUI/PIP.h>
6 changes: 1 addition & 5 deletions PlayerUI/Protocols/PUIPlayerViewDelegates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@

import Cocoa

public enum PUIPiPExitReason {
case returnButton, exitButton
}

public protocol PUIPlayerViewDelegate: AnyObject {

func playerViewWillEnterPictureInPictureMode(_ playerView: PUIPlayerView)
func playerViewWillExitPictureInPictureMode(_ playerView: PUIPlayerView, reason: PUIPiPExitReason)
func playerWillRestoreUserInterfaceForPictureInPictureStop(_ playerView: PUIPlayerView)
func playerViewDidSelectAddAnnotation(_ playerView: PUIPlayerView, at timestamp: Double)
func playerViewDidSelectToggleFullScreen(_ playerView: PUIPlayerView)
func playerViewDidSelectLike(_ playerView: PUIPlayerView)
Expand Down
Loading

0 comments on commit 78b29db

Please sign in to comment.