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 React native to ts-client #1

Merged
merged 102 commits into from
Jun 27, 2024
Merged

Add React native to ts-client #1

merged 102 commits into from
Jun 27, 2024

Conversation

mironiasty
Copy link
Member

Description

Describe your changes in detail.

Motivation and Context

Why is this change required? What problem does it solve? If it fixes an open
issue, please link to the issue here.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)

kamil-stasiak and others added 30 commits February 24, 2023 12:39
* Add auth

---------

Co-authored-by: Szymon Kania <[email protected]>
* Handle partial response from enumerateDeivce

* Apply changes to enumarateDevice function
* Add lint and local package

* Fix dist

* Apply suggestions from code review

Co-authored-by: Kamil Stasiak <[email protected]>
* Auth format update

* Update client

* Remove peerid and roomid

---------

Co-authored-by: Przemysław Rożnawski <[email protected]>
* Configure format

* format

* Format vanilla

* Remove token log
* Add gh-pages docs

* Format
* Update readme

* Add minimal example

* Update readme with example

* Add minimal react example

* format

* Rtc-206 gh pages documentation (#14)

* Add gh-pages docs

* Format

* Fix react strict

* Change type to interface

* Add docs to logging

* Add more docs

* Format

* Remove unused files

* Add more examples

* Format
* Update references to websocket url to match skd changes

* Update `ts-client-sdk` version in lock files
Co-authored-by: Szymon Kania <[email protected]>
Co-authored-by: Konrad Bochnia <[email protected]>
* Remove dashboard

* Remove 'check dashboard action'
* Add track field

* Fix format
dependabot bot and others added 29 commits June 12, 2024 09:45
## Description

This PR introduces changes from:
fishjam-dev/ts-client-sdk#49 and also:

### useCamera, useMicrophone, useScreenshare

Hooks for managing a single track of a given type in the global state
(similarly to the React Native API).

#### onDeviceStop

`onDeviceStop?: "remove" | "mute";
This PR introduces a new `onDeviceStop` config parameter that allows the
user to decide what to do if a track stops. Without it, the track has
been removed from `RTCPeerConnection`. Now, with the option `mute`, that
track can be reused later without renegotiation. It is a companion event
to `onDeviceChange`.

Added `onDeviceStop`, `onDeviceChange`, and the ability to stop a device
to `use-camera-and-microphone-example`.

#### onDeviceChange

`onDeviceChange?: "replace" | "stop";`
Determines whether a track should be replaced when the user requests a
device change. Previously, `broadcastOnDeviceChange`.

#### Other changes

- Names of types like `UseMicrophoneResult` changed to something
simpler, like `MicrophoneAPI`.

## Motivation and Context

Fishjam now offers the ability to reuse tracks.

## Types of changes

- [ ] Bug fix (a non-breaking change that fixes an issue)
- [ ] New feature (a non-breaking change that adds functionality)
- [x] Breaking change (a fix or feature that would cause existing
functionality to not work as expected)
  - The `replaceTrack` method can handle a nullable track parameter.
  - The `stream` parameter was removed from the `addTrack` method.
@mironiasty mironiasty merged commit 5023030 into main Jun 27, 2024
1 of 2 checks passed
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.

9 participants