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

feat: add id, readyState, and getAllEffects to stream classes #62

Merged
merged 3 commits into from
Oct 2, 2023

Conversation

brycetham
Copy link
Contributor

@brycetham brycetham commented Sep 29, 2023

This PR adds an id getter to the Stream class, as well as a readyState getter and a getAllEffects method to the LocalStream class.

@@ -14,6 +15,8 @@ interface StreamEvents {
* Base stream class.
*/
abstract class _Stream {
readonly id = uuid();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason not to use MediaStream::id?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought originally that maybe outputStream would change, but I see now that we had explicitly made it so that the stream itself would always remain the same, so yeah I think I can change the id getter to return this.outputStream.id.

@brycetham brycetham changed the title feat: add id and readyState to stream classes feat: add id, readyState, and getAllEffects to stream classes Oct 2, 2023
@brycetham brycetham merged commit 62deb74 into main Oct 2, 2023
1 check passed
@brycetham brycetham deleted the btham/add_id_and_readystate branch October 2, 2023 17:38
bbaldino pushed a commit that referenced this pull request Oct 2, 2023
# [2.2.0](v2.1.0...v2.2.0) (2023-10-02)

### Features

* add id, readyState, and getAllEffects to stream classes ([#62](#62)) ([62deb74](62deb74))
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