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

How do I send local pictures or video files to the TV for playback? #268

Open
Kanagizhe opened this issue Apr 11, 2024 · 14 comments
Open

How do I send local pictures or video files to the TV for playback? #268

Kanagizhe opened this issue Apr 11, 2024 · 14 comments

Comments

@Kanagizhe
Copy link

Using the method in the document, I can use the URL of the pictures or videos to cast them to the TV, but how do I select pictures or videos from the mobile phone album to make them play on the TV? After searching for information, I think using WEBServer is a feasible solution, but after trying it, it cannot play normally. Please help me.

@HarshadTechmero
Copy link

Hi @Kanagizhe are you able to pair iOS and smartTV device, i am able to fetch devices but after connect() method not able to send pair code to smartTV,

self.connectedDevice = obj
self.connectedDevice?.delegate = self
self.connectedDevice?.setPairingType(DeviceServicePairingType(rawValue: DeviceServicePairingTypePinCode.rawValue))
self.connectedDevice?.connect()

can you please help me for pairing iOS to smart TV device.

@Kanagizhe
Copy link
Author

Hi @Kanagizhe are you able to pair iOS and smartTV device, i am able to fetch devices but after connect() method not able to send pair code to smartTV,您好,您可以配对 iOS 和 smartTV 设备吗?我可以获取设备,但在 connect() 方法之后无法将配对代码发送到 smartTV,

self.connectedDevice = obj self.connectedDevice?.delegate = self self.connectedDevice?.setPairingType(DeviceServicePairingType(rawValue: DeviceServicePairingTypePinCode.rawValue)) self.connectedDevice?.connect()

can you please help me for pairing iOS to smart TV device.您能帮我将 iOS 与智能电视设备配对吗?

Hello, I have not encountered your problem during development. I use OC to develop an APP for LG. After calling the connect method, a pin code pop-up window will appear on the TV. Enter the pin code on the mobile phone to complete the pairing. The following is You can refer to my code:
RemoteeSearchDeviceCell *cell=[tableView cellForRowAtIndexPath:indexPath];
ConnectableDevice *device=_dataArr[indexPath.section];
device.delegate=self;
[device setPairingType:DeviceServicePairingTypePinCode];
[device connect];

@HarshadTechmero
Copy link

@Kanagizhe Thank you for reply but i am already try same code but device not display code, any permission require for this pincode screen display?

@Kanagizhe
Copy link
Author

@Kanagizhe Thank you for reply but i am already try same code but device not display code, any permission require for this pincode screen display?感谢您的回复,但我已经尝试相同的代码,但设备不显示代码,此 pincode 屏幕显示需要任何权限吗?

Try it in AppDelegate:
[DiscoveryManager sharedManager].pairingLevel=DeviceServicePairingLevelOn;

@HarshadTechmero
Copy link

HarshadTechmero commented Apr 11, 2024

Hi @Kanagizhe Thank you for quick response i have try but no luck for above code

I am using swift code

IMG_F1EB624B32A3-1

Discover.pdf

i am attaching my code, Please help me if you have sometime.

Thanks you so much for your valuable time

@Kanagizhe
Copy link
Author

Hi @Kanagizhe Thank you for quick response i have try but no luck for above code

I am using swift code

IMG_F1EB624B32A3-1

Discover.pdf

i am attaching my code, Please help me if you have sometime.

Thanks you so much for your valuable time

Hi, I noticed that your TV model is not LG, maybe it does not require a PIN to connect? Try changing the pairing type to firstScreen or None, Mirrors, etc., which may help.

@HarshadTechmero
Copy link

Hi, @Kanagizhe Thank you for Reply,

My device is OnePlus Y Series but another market app is send pairing code to my device but only my app not sending code, i am not sure other market app use same SDK or not. Have you idea about any other SDK?

@Kanagizhe
Copy link
Author

Sorry, I haven't found any other universal SDK yet. If you find any, please let me know, thank you.

@HarshadTechmero
Copy link

You can try with smart-view-sdk develop by Smasung

@HarshadTechmero
Copy link

I have try with changing the pairing type to firstScreen or None, Mirrors, etc. but no luck. Is there any other code for connect direct services or device with sending code to device?

@Kanagizhe
Copy link
Author

I have try with changing the pairing type to firstScreen or None, Mirrors, etc. but no luck. Is there any other code for connect direct services or device with sending code to device?我尝试将配对类型更改为firstScreen或None、Mirrors等,但没有成功。是否有其他代码可用于连接直接服务或设备并向设备发送代码?

Sorry, I have not developed the model adaptation and pairing problems you encountered. Please try to contact the official developers, although the questions I raised have never been officially replied.

@HarshadTechmero
Copy link

Exactly, i also send mail but no reply from support

@HarshadTechmero
Copy link

Hi @SuppaStrong you can try with this lib it's worked for me for pairing code and Remote control Keys to android TV,
Connect SDK Only use for LG TV only

https://github.com/odyshewroman/AndroidTVRemoteControl

@HarshadTechmero
Copy link

You can try with GoogleCast, I am done using Google Cast and i am done with casting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants