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

Write a chrome extension to support UDP in browser? #811

Closed
FezVrasta opened this issue May 20, 2016 · 5 comments
Closed

Write a chrome extension to support UDP in browser? #811

FezVrasta opened this issue May 20, 2016 · 5 comments

Comments

@FezVrasta
Copy link

@FezVrasta FezVrasta commented May 20, 2016

Chrome supports the chrome.sockets.udp API (https://developer.chrome.com/apps/sockets_udp) in its apps.

I've not tried this API on Chrome extensions, but if it could work we could provide an extension to enable UDP peers directly within the browser.

WebTorrent could check for the extension availability, and, if present, it could interface with it to take advantage of the UDP peers.

In this way, websites using WebTorrent on browser, could just advise the user to install the WebTorrent extension to allow them to connect to more peers.

What are your thoughts?

@zh99998

This comment has been minimized.

Copy link

@zh99998 zh99998 commented Jul 31, 2016

it sounds great! +1'd for this request

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Aug 4, 2016

This is a cool idea. I've thought about it before, but Chrome extensions are not allowed to use the chrome.sockets.udp. So we would need to make both a Chrome app and an extension and have the extension communicate with the app to open sockets.

So it's possible, but not as elegant as described due to Chrome restrictions.

More info:

https://stackoverflow.com/questions/13921970/google-chrome-socket-api-in-extensions
https://bugs.chromium.org/p/chromium/issues/detail?id=152875

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Aug 4, 2016

Closing as duplicate of #443

@feross feross closed this Aug 4, 2016
@FezVrasta

This comment has been minimized.

Copy link
Author

@FezVrasta FezVrasta commented Aug 4, 2016

I see, so it would be a good plan porting the current webtorrent desktop app to Chrome App, so it can do as bridge and provide even basic torrent functionalities. Then write the chrome extension to enable webtorrent on web pages?

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.