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

Using another android device as client #100

Open
ghost opened this Issue Mar 27, 2018 · 14 comments

Comments

Projects
None yet
3 participants
@ghost

ghost commented Mar 27, 2018

Thanks for this amazing project.
Is it possible to mirror one android screen to another android device using scrcpy-adb connect method? I found adb clients compiled for arm devices and also java implementation of adb client on github. What are your thoughts?

@rom1v rom1v changed the title from Feature Request: Using another android device as client. to Using another android device as client Mar 27, 2018

@rom1v

This comment has been minimized.

Collaborator

rom1v commented Mar 27, 2018

As is, the client would require SDL and FFmpeg ARM versions, and wrap SDL stuff into an Android application.

But IMO it would be better to write a specific Android client, which would use the Android APIs instead of SDL and FFmpeg.

@NickAcPT

This comment has been minimized.

NickAcPT commented Apr 10, 2018

+1 Would also like to see this turn into a feature.

@tailcode

This comment has been minimized.

tailcode commented Jul 4, 2018

Hi @rom1v !
I am working on this. Is it okay to use the name scrcpy for the app?

@rom1v

This comment has been minimized.

Collaborator

rom1v commented Jul 4, 2018

@tailcode The name should not be confusing about what application it is, so the very same name is not a good idea.

Maybe scrcpy-something, or another "wordplay".

@tailcode

This comment has been minimized.

tailcode commented Jul 4, 2018

@rom1v Thank you. Considering basic functionality of scrcpy, I think my app is ready but not perfect. This is my first app. I want you to take a look at my app and provide me with suggestions. So if you are okay with it please provide me with an email or any other medium to send the apk. And if possible kindly suggest some "wordplay" for the app name.

@NickAcPT

This comment has been minimized.

NickAcPT commented Jul 4, 2018

Hey, sorry for bothering, but is there any plans to make it so there's almost no latency on the android app @tailcode is developing?
I know that might need some protocol redesign in order to acomplish such task..

@rom1v

This comment has been minimized.

Collaborator

rom1v commented Jul 4, 2018

Considering basic functionality of scrcpy, I think my app is ready but not perfect. This is my first app. I want you to take a look at my app and provide me with suggestions. So if you are okay

Sure. Publish the code somewhere and I'll take a look when I have some time 👍

@tailcode

This comment has been minimized.

tailcode commented Jul 11, 2018

@rom1v Here is the code. Thanks in advance.
https://gitlab.com/las2mile/scrcpy-android

@rom1v

This comment has been minimized.

Collaborator

rom1v commented Jul 12, 2018

@tailcode Thank you very much. Seems great. 👍 I will definitely check when I have some more time.

For now, just one little remark: you could use adblib as a dependency instead of a copy-paste of their source code:

compile 'com.tananaev:adblib:1.2'
@tailcode

This comment has been minimized.

tailcode commented Jul 13, 2018

@rom1v Thank you very much. I agree with you. But I have made small changes to AdbCrypto.java file of adblib. I will see if I can isolate those changes. Meanwhile one issue that I came upon while using the app is, I am unable to open items in gallery and file manager of remote device. When I click on an image or video thumbnail, instead of opening, they are being selected. Please enlighten me if I am missing something.

@rom1v

This comment has been minimized.

Collaborator

rom1v commented Jul 18, 2018

@tailcode Hey, I just tested, that works great 👍 Good job!

Is it possible to quit from the client? (I only see the remote fullscreen, so I can't control the client device)

Also, if the devices have a different aspect ratio (typically if I force the navbar to be displayed), the video aspect-ratio is not preserved.

When I click on an image or video thumbnail, instead of opening, they are being selected.

I think there is a similar problem with VLC: if I click quickly while a video is playing, it should display the control bar, but it does not.

@tailcode

This comment has been minimized.

tailcode commented Jul 20, 2018

@rom1v Thank you very much for the feedback.

Is it possible to quit from the client?

Yes, when you exit from the app, socket pipe breaks and server terminates. Cleaning of remote device is handled in server code.

I only see the remote fullscreen, so I can't control the client device

You mean input events are not working ? I have tested on few devices and they worked for me. Please let me know what device you are using and I will try to test on it if I can find it in my circle.

One hurdle I have encountered on a Samsung device is, it doesn't have curl or wget binaries in it and the server cannot be downloaded to it by the current implementation. I don't know if all samsung devices are so. I have worked on a new method to push server to remote device which I am testing. I will push them to git once I think it is ready.

@rom1v

This comment has been minimized.

Collaborator

rom1v commented Jul 20, 2018

when you exit from the app

How do you do that? The whole client screen displays the remote screen.

You mean input events are not working ?

Yes, input events are workings: they are forwarded to the remote device.

@tailcode

This comment has been minimized.

tailcode commented Jul 20, 2018

@rom1v Sorry, I mistook your question.

Is it possible to quit from the client?

Just swipe from bottom edge of screen. You will see android navigation bar.

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