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