An interface to standardize how objects are destroyed.
- Implementations:
- shaka.net.NetworkingEngine
- shaka.offline.DBEngine
- shaka.offline.Storage
- shaka.offline.DownloadManager
- shaka.media.MediaSourceEngine
- shaka.media.Playhead
- shaka.media.StreamingEngine
- shaka.media.TextEngine
- shaka.media.DrmEngine
- shaka.media.SegmentIndex
- shaka.Player
- shaka.cast.CastProxy
- shaka.cast.CastReceiver
- shaka.cast.CastSender
- shaka.util.EventManager
- 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.offline.DBEngine#destroy
- shaka.offline.Storage#destroy
- shaka.offline.DownloadManager#destroy
- shaka.media.MediaSourceEngine#destroy
- shaka.media.Playhead#destroy
- shaka.media.StreamingEngine#destroy
- shaka.media.TextEngine#destroy
- shaka.media.DrmEngine#destroy
- shaka.media.SegmentIndex#destroy
- shaka.Player#destroy
- shaka.cast.CastProxy#destroy
- shaka.cast.CastReceiver#destroy
- shaka.cast.CastSender#destroy
- shaka.util.EventManager#destroy
- Source:
Returns:
- Type
- Promise