-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Android Presentation API and iOS AirPlay #99
Comments
Comment by j9brown FWIW, I designed the Android presentation API. Let me know if you have any On Mon, Jul 20, 2015 at 7:19 AM Lex Berezhny notifications@github.com
|
Comment by j9brown Fwiw, I am putting some thought into how the Sky Shell should evolve to On Wed, Jul 22, 2015, 5:57 PM Ian Hickson notifications@github.com wrote:
|
Comment by eukreign My initial ticket implies that the two views are running in different isolates but I don't know if this is necessarily the case. I noticed some code recently where Android Activities (I think that's what they were) were getting instantiated and started from within Sky app. Seems like it shouldn't be much of a stretch to implement the Presentation API patterns then. But maybe I'm missing something, Sky has accelerated in development so much lately that it's been difficult keeping track... that's a good thing! 👍 |
Comment by j9brown The Sky code may run in isolates but the Android code shares the state of I've started sketching out some thoughts around how the Android embedding Now if you're thinking about the Cast story in general (not just On Wed, Jul 22, 2015, 6:33 PM Lex Berezhny notifications@github.com wrote:
|
Comment by eukreign I've got an idea for an app that I want to build, a few Android devices, a Chromecast and I know Dart pretty well so I'm very interested in any workable solution that would let me use the Chromecast as a second screen from a Sky app. Several months ago I attempted to get this all working on my own by using network sockets to communicate between two Dart isolates that I was starting from the Java/Dalvik side. But it was quite a bit of a hack and just wasn't really workable. I also hard coded the C++ Sky engine to start two Sky Views... like i said it was a monster :-) I think it's best if I wait for someone who knows what they are doing to implement this part. I'll be happy to test and experiment once there is something working though. My app idea is for an eye exercise program that helps with focusing and convergence insufficiency issues. Currently behavioral eye therapists use the "Hart Chart" for this but it's a little too low tech and gets insanely boring after the first couple of times and practically impossible to get a child to do it. I have eye issues and my daughter who is 9 also suffers from this, a digital version of the Hart Chart would be a life saver (literally). I have a prototype that I implemented using WebViews but communicating between WebViews is more than a bit slow on Android (because they run on different threads and you have to synchronize the messages between them, it's a mess)... Anyways, I'm really looking forward to this feature being supported in Sky! |
Comment by j9brown Cool. Well I can certainly help with this stuff (given I designed most of Now that said, you might not even need to rely on Presentation for this use (Presentation is mostly interesting for showing different content on Another option would be to develop a native Chromecast app and connect to So lots of options depending on the desired user experience. On Wed, Jul 22, 2015, 7:07 PM Lex Berezhny notifications@github.com wrote:
|
Comment by eukreign Could you create a "Hello World" Sky app where it would list available displays, then after picking a display it would show something on that display? |
Comment by j9brown Ideally the user shouldn't have to choose the display itself but rather the Now if you want to see a native Android app that does enumerate displays Jeff. On Wed, Jul 22, 2015, 7:33 PM Lex Berezhny notifications@github.com wrote:
|
(note: comment stream got truncated in migration) |
This is not currently on our near-term planning. I suspect it's very likely we'll provide a plugin for this, but I don't think we need this open at this time to track that. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Issue by eukreign
Monday Jul 20, 2015 at 14:19 GMT
Originally opened as https://github.com/flutter/engine/issues/130
It would be really great if Sky could support the use case of having two independent display/view instances that can communicate together. This would make Sky very appealing to game developers who want to make multi-screen games (phone/tablet as controller and large TV/monitor as second screen).
Both Android and iOS have support for this use case today using the standard frameworks.
There are two issues that would need to be addressed to make this work:
For inspiration, here is a cordova Presentation API plugin that implements all of the necessary plumbing for both Android and iOS:
https://github.com/fraunhoferfokus/cordova-plugin-presentation
The text was updated successfully, but these errors were encountered: