You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Cleans up the resources associated with a video player.
48
-
/// This function nullifies references to the player, player looper, and observers to facilitate resource deallocation and prevent memory leaks.
49
-
/// - Parameters:
50
-
/// - player: A reference to the AVQueuePlayer instance. This parameter is passed by reference to allow the function to nullify the external reference.
51
-
/// - playerLooper: A reference to the AVPlayerLooper associated with the player. This is also passed by reference to nullify and help in cleaning up.
52
-
/// - statusObserver: A reference to an observer watching the player's status changes. Passing by reference allows the function to dispose of it properly.
53
-
/// - errorObserver: A reference to an observer monitoring errors from the player. It is managed in the same way as statusObserver to ensure proper cleanup.
0 commit comments