-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add destroy()
method
#24
Add destroy()
method
#24
Conversation
🦋 Changeset detectedLatest commit: 139c137 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
ac9ce41
to
139c137
Compare
This has already been fixed in #24. I've rebased your PR to remove those changes, and only include the |
destroy()
method
@@ -89,3 +89,10 @@ await yospaceConnector.setupYospaceSession(source, sessionProperties); | |||
``` | |||
|
|||
Once the setup of the Yospace session is done, you can continue to use the player and the connector will handle everything related to Yospace. | |||
|
|||
To shutdown the current Yospace session, use the connector's `destroy()` method. The connector automatically calls `session.shutdown()` on session initialization errors and when creating a new session. If you, however, set a non-yospace source to the player after using this connector, it is your responsibility to do this through `destroy()`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need a new connector method for this? Can't the connector call reset()
automatically, for example when THEOplayer fires a sourcechange
or destroy
event? 🤔
With #26, we will now call So I consider this to be solved. |
UpdatedupdateYospaceWithPlaybackPosition
to report the currentTime offset wrtsession.getStreamStart()
(Superseded by Offset the playback position from stream start for Yospace DVRLive sessions #23)
destroy()
method to the connector, to allow users to shutdown the current yospace session. E.g. for when a non-yospace source will be set to the player. Right now this shutdown only happens when setting a new yospace source or when initialization of the session fails.