react-native-video/ios/Video/RNVPlugin.swift

24 lines
681 B
Swift
Raw Normal View History

2024-06-25 00:55:32 -06:00
//
// RNVPlugin.swift
// react-native-video
//
import Foundation
public protocol RNVPlugin {
/**
* Function called when a new player is created
* @param id: a random string identifying the player
* @param player: the instantiated player reference
*/
func onInstanceCreated(id: String, player: Any)
/**
* Function called when a player should be destroyed
* when this callback is called, the plugin shall free all
* resources and release all reference to Player object
* @param id: a random string identifying the player
* @param player: the player to release
*/
func onInstanceRemoved(id: String, player: Any)
}