odyshewroman / AndroidTVRemoteControl

MIT License
21 stars 7 forks source link

Samsung Tizen OS Connection Failed #22

Open HarshadTechmero opened 1 month ago

HarshadTechmero commented 1 month ago

Pairing state: Extract TLS params Pairing state: Connection Prepairing Pairing state: Error: connection Waiting Error: The operation couldn’t be completed. (Network.NWError error 0.)

It's failed while connect samsung Tizen OS TV, Below is my connect code,. Can you please help me for connect samsung tizen OS.

func connect(host: String) {
            queue.async {
                self.remoteManager.stateChanged = { [weak self] remoteState in
                    self?.remoteStateChanged?(remoteState.toString())
                }

                self.pairingManager.stateChanged = { [weak self] pairingState in
                    self?.pairingStateChanged?(pairingState.toString())

                    if case .successPaired = pairingState {
                        self?.remoteManager.connect(host)
                    }
                }

                self.pairingManager.connect(host, "client", "iPhone")
            }
    }
floriangbh commented 1 month ago

I think you are confusing Android TV OS and Samsung Tizen OS :)

Jack672 commented 1 month ago

Hi @HarshadTechmero

I have implement the code in swift for controlling samsung OS. It have also a feature of text entry from iPhone to smart tv.

HarshadTechmero commented 1 month ago

Hi @Jack672

Have you use SmartView SDK or same github project for connect Samsung TV?

HarshadTechmero commented 1 month ago

Hi @floriangbh @Jack672 @odyshewroman is there any option for type Keyboard text using RemoteManager, I have KEYCODE_A and etc. but not worked, Is there any solution for that?

KEYCODE_0 to KEYCODE_9 is working finr but A-Z not working

Screenshot 2024-05-17 at 2 50 28 PM
odyshewroman commented 1 month ago

Yep, not all of keys is worked. Indeed work only some of them, and most of codes are useless, I just have take it from https://developer.android.com/reference/android/view/KeyEvent

HarshadTechmero commented 1 month ago

ok thank you, we need A-Z char so i will check above link and try to resolved.

and is there any options or code for TrackPad Up,Down, Left, Right move?

Jack672 commented 1 month ago

Hey @HarshadTechmero

No I have created a samsung tv controller code by myself

And regarding TrackPad you can use:

1.KEYCODE_DPAD_UP 2.KEYCODE_DPAD_DOWN 3.KEYCODE_DPAD_LEFT 4.KEYCODE_DPAD_RIGHT 5.KEYCODE_DPAD_CENTER

HarshadTechmero commented 1 month ago

Hi @Jack672 Sorry for let you know bu i have try with above key but it's not working so. Above key is worked for you?

Jack672 commented 1 month ago

Some models do not support some of these keys as @odyshewroman mentioned above.

However I have a code for casting images and videos from iPhone to smart tv and I can integrate that into this project

I have also a samsung os controller code with advance features

If you wana get these codes you can reply me with your email

HarshadTechmero commented 1 month ago

Hi @Jack672 i have done with Image and Video Casting. But i need samsung OS Controller code. Can you please share your email?

Jack672 commented 1 month ago

Hi @HarshadTechmero

Ok you can contact me through my telegram

But it will cost for the code. If you wana buy then let me know I will share you my telegram

HarshadTechmero commented 1 month ago

HI @Jack672 can you reply on mail, so we can discuss about cost

HarshadTechmero commented 1 month ago

@Jack672 your A-Z character is working on AndroidTVRemoteControl?

HarshadTechmero commented 1 month ago

Hi @Jack672 please check skype

HarshadTechmero commented 1 month ago

Hello @Jack672

Thank you for update i will join on telegram.