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

show feedback when WebRTC is not supported by the browser #97

Merged
merged 4 commits into from
Nov 18, 2016

Conversation

jancborchardt
Copy link
Member

What is the correct error handler? I suppose on('WebrtcError' is wrong ;)

Please help @fancycode @LukasReschke :)

@fancycode
Copy link
Member

According to https://github.com/andyet/SimpleWebRTC there is a property capabilities which is the webrtcsupport object from https://github.com/HenrikJoreteg/webrtcsupport.

So you should be able to query all sorts of properties from it.

@fancycode
Copy link
Member

support: // boolean whether basic WebRTC support exists looks like what you want ;-)

@codecov-io
Copy link

Current coverage is 6.93% (diff: 100%)

Merging #97 into master will not change coverage

@@            master       #97   diff @@
========================================
  Files           11        11          
  Lines          577       577          
  Methods         39        39          
  Messages         0         0          
  Branches         0         0          
========================================
  Hits            40        40          
  Misses         537       537          
  Partials         0         0          

Powered by Codecov. Last update 98e83cb...b2eb94c

@jancborchardt jancborchardt changed the title [WIP] show feedback when WebRTC is not supported by the browser show feedback when WebRTC is not supported by the browser Nov 16, 2016
@jancborchardt
Copy link
Member Author

This is now ready for review :)

}
$('#emptycontent h2').text(message);
$('#emptycontent p').text(messageAdditional);
});

if(!OCA.SpreedMe.webrtc.capabilities.support) {
console.log('WebRTC not supported', error);
Copy link
Member

Choose a reason for hiding this comment

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

error is not defined here (as reported by eslint)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah right, just a boolean so no error message. Will just remove it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@fancycode
Copy link
Member

lgtm if the undefined variable is fixed

@jancborchardt
Copy link
Member Author

@Ivansss @MorrisJobke @rullzer @LukasReschke please review :)

jancborchardt and others added 4 commits November 18, 2016 12:07
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke
Copy link
Member

I tested this and fixed another case in IE11 and Edge.

@MorrisJobke
Copy link
Member

👍

@MorrisJobke MorrisJobke added this to the 1.0.0 milestone Nov 18, 2016
@jancborchardt
Copy link
Member Author

👍

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.

4 participants