Andreas Paulus
2015-08-11 12:55:48 UTC
Hi,
I want to make a realtime multiplayer game using WebRTC. I do not want to
go peer2peer but client-server and wanted to use dart for this.
Unfortunatelly the server console application cannot use dart:html and thus
cannot access the RtcPeerConnection class. I know it is implemented in the
browser so it is not possible to port it over to dart:io and it will never
happen (https://github.com/dart-lang/sdk/issues/18426).
I could try to work around this using a web-based dart app running in
dartium which forwards all data received from WebRTC clients to my dart
console application via websocket but I don't like this approach because
- I don't think there is a headless mode so I cannot deploy this easily
- I don't think is scales well because of the single threaded context in
which the RtcPeerConnection lives inside dartium.
There must be a better way.
I am really hesitant to use native libraries
(http://www.webrtc.org/native-code/development) because it sounds like a
lot of work to integrate it into my dart command line app.
Any advice?
I want to make a realtime multiplayer game using WebRTC. I do not want to
go peer2peer but client-server and wanted to use dart for this.
Unfortunatelly the server console application cannot use dart:html and thus
cannot access the RtcPeerConnection class. I know it is implemented in the
browser so it is not possible to port it over to dart:io and it will never
happen (https://github.com/dart-lang/sdk/issues/18426).
I could try to work around this using a web-based dart app running in
dartium which forwards all data received from WebRTC clients to my dart
console application via websocket but I don't like this approach because
- I don't think there is a headless mode so I cannot deploy this easily
- I don't think is scales well because of the single threaded context in
which the RtcPeerConnection lives inside dartium.
There must be a better way.
I am really hesitant to use native libraries
(http://www.webrtc.org/native-code/development) because it sounds like a
lot of work to integrate it into my dart command line app.
Any advice?
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.