Skip to content
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

Closed

Conversation

wjoosen
Copy link
Contributor

@wjoosen wjoosen commented May 24, 2024

  1. Updated updateYospaceWithPlaybackPosition to report the currentTime offset wrt session.getStreamStart()
    (Superseded by Offset the playback position from stream start for Yospace DVRLive sessions #23)
  2. Added a public 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.

Copy link

changeset-bot bot commented May 24, 2024

🦋 Changeset detected

Latest commit: 139c137

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@theoplayer/yospace-connector-web Minor
@theoplayer/conviva-connector-web Major

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

@MattiasBuelens MattiasBuelens force-pushed the feature/yospace-enable-usage-of-dvrlive-for-livestreams branch from ac9ce41 to 139c137 Compare May 27, 2024 11:34
@MattiasBuelens
Copy link
Contributor

  1. Updated updateYospaceWithPlaybackPosition to report the currentTime offset wrt session.getStreamStart()

This has already been fixed in #24.

I've rebased your PR to remove those changes, and only include the reset() and destroy() method.

@MattiasBuelens MattiasBuelens changed the title Feature/yospace enable usage of dvrlive for livestreams Add destroy() method May 27, 2024
@@ -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()`.
Copy link
Contributor

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? 🤔

@MattiasBuelens
Copy link
Contributor

With #26, we will now call reset() automatically when changing sources. (THEOplayer 7.4.0 or higher is required though.)

So I consider this to be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants