Skip to content

Video 6578 display all camera tracks #585

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

Merged
merged 7 commits into from
Sep 10, 2021

Conversation

timmydoza
Copy link
Contributor

@timmydoza timmydoza commented Sep 2, 2021

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

Description

This PR addresses an interoperability issue between this app and Twilio's iOS and Android quickstart apps. The issue was that this app was not displaying video tracks because the tracks were not correctly labeled. If the track name did not include 'camera' (all lowercase), then the track would not be displayed. This means that unlabeled tracks, or tracks labeled as 'Camera' (uppercase 'C') would not be displayed.

This PR removes the requirement that video tracks have a name in order to be displayed. Screen share tracks must still contain the word 'screen' in order to be treated as screen share tracks.

Additionally, this PR makes the following changes:

  • Adds error logging for conversations
  • Fixes issue with the MainParticipant displaying the network quality for the LocalParticipant.
  • Suppresses tfjs warnings during tests.

Burndown

Before review

  • Updated CHANGELOG.md if necessary
  • Added unit tests if necessary
  • Updated affected documentation
  • Verified locally with npm test
  • Manually sanity tested running locally
  • Included screenshot as PR comment (if needed)
  • Ready for review

Before merge

  • Got one or more +1s
  • Re-tested if necessary

@timmydoza timmydoza requested a review from olipyskoty September 7, 2021 21:01
Copy link
Contributor

@olipyskoty olipyskoty left a comment

Choose a reason for hiding this comment

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

This looks good! 🎉 Just need to add one more console.error() in src/components/ChatProvider/index.tsx

@@ -32,7 +32,8 @@ export const ChatProvider: React.FC = ({ children }) => {
window.chatClient = client;
setChatClient(client);
})
.catch(() => {
.catch(e => {
console.error(e);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we will need to add another console.error(e) to line 76

@timmydoza timmydoza requested a review from olipyskoty September 8, 2021 17:59
olipyskoty
olipyskoty previously approved these changes Sep 8, 2021
Copy link
Contributor

@olipyskoty olipyskoty left a comment

Choose a reason for hiding this comment

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

looks good!

Copy link
Contributor

@olipyskoty olipyskoty left a comment

Choose a reason for hiding this comment

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

Looks good. Confirmed that there aren't any more instances of track.name.includes('camera') 👍

@timmydoza timmydoza merged commit 47e50dd into master Sep 10, 2021
@timmydoza timmydoza deleted the VIDEO-6578-display-all-camera-tracks branch September 10, 2021 22:26
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