Preload and reuse Player (iOS SDK)
Preload Player
In your application, you can preload the Player before the user attempts to play a video. To preload the Player, create a Player as instructed here and store the returned DMPlayerView object.
When ready to show the Player, attach the DMPlayerView to the desired view hierarchy and call the loadContent() or play() method depending if you already passed a video ID or a playlist ID when creating the Player.
Reuse Player
When using the Player in your app, you can (and should) reuse the same Player instance. Therefore, a single-player instance can load multiple videos by using the loadContent() method .
Updated 17 days ago
