An interface to standardize how objects are destroyed.
- Implementations:
- shaka.net.NetworkingEngine
- shaka.cast.CastSender
- shaka.cast.CastProxy
- shaka.cast.CastReceiver
- shaka.offline.Storage
- shaka.offline.DBEngine
- shaka.offline.DownloadManager
- shaka.util.EventManager
- shaka.Player
- shaka.media.SegmentIndex
- shaka.media.StreamingEngine
- shaka.media.MediaSourceEngine
- shaka.media.Playhead
- shaka.media.DrmEngine
- shaka.media.TextEngine
- Source:
Methods
-
destroy() → (non-null) {Promise}
-
Destroys the object, releasing all resources and shutting down all operations. Returns a Promise which is resolved when destruction is complete. This Promise should never be rejected.
- Implementations:
- shaka.net.NetworkingEngine#destroy
- shaka.cast.CastSender#destroy
- shaka.cast.CastProxy#destroy
- shaka.cast.CastReceiver#destroy
- shaka.offline.Storage#destroy
- shaka.offline.DBEngine#destroy
- shaka.offline.DownloadManager#destroy
- shaka.util.EventManager#destroy
- shaka.Player#destroy
- shaka.media.SegmentIndex#destroy
- shaka.media.StreamingEngine#destroy
- shaka.media.MediaSourceEngine#destroy
- shaka.media.Playhead#destroy
- shaka.media.DrmEngine#destroy
- shaka.media.TextEngine#destroy
- Source:
Returns:
- Type
- Promise