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

Semi accurate documentation #291

Closed
yan-foto opened this Issue Jul 22, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@yan-foto
Copy link

yan-foto commented Jul 22, 2015

As I was trying to find out the reason for this sentence:

As you probably know, you cannot open WebRTC-powered web applications by just opening the application HTML files from file system, as it won't work. This means that to test and use Janus you'll need to host your applications on a webserver.

I found out that (at least for streaming example) the aforementioned is valid only for UAs that doesn't implement srcObj property of HTMLMediaElement (i.e. <video>). Such UAs use createObjectURL to create a blob URL and then assign it to <video>.

In case of Chrome (tested with version 43.0.2357.134 (64-bit)) srcObj is not implemented and since workers are not allowed to run locally (i.e. file:// scheme) the documentation is valid but in case of Firefox (tested with version 39.0) I was able to stream webcam video locally without delivering my streamingtest.html through a webserver (see adapter.js).

@lminiero

This comment has been minimized.

Copy link
Member

lminiero commented Jul 22, 2015

Fair point, but since is an easy error most users make, and many use Chrome, we thought that advising on the best practice to test this was easier. I'll check if and how I can revisit the docs to clarify your point when I get back home from the conference.

@yan-foto

This comment has been minimized.

Copy link

yan-foto commented Jul 22, 2015

Thank you for your quick replies 🔝 ! I was just at the verge of pulling my hair out because I wasn't sure how webRTC is implemented exactly. I'd say a oneliner would help people like me to get some orientation.

@lminiero

This comment has been minimized.

Copy link
Member

lminiero commented Jul 27, 2015

This should be clearer, thanks for the feedback.

@lminiero lminiero closed this Jul 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment