ConnectSDK / Connect-SDK-Android-Core

Core source code for the Android Connect SDK project
Apache License 2.0
114 stars 79 forks source link

Internal server error when cast Audio using Samsung tv #155

Closed kun510 closed 2 weeks ago

kun510 commented 1 month ago

Hi, I'm trying to cast a simple mp3 audio to Samsung DLNA, but I get this error many times: Display Audio failure: Internal Server Error Can anyone explain and fix this for me? Thanks

theduc0x commented 2 weeks ago

hi, I wonder if you have fixed that error yet? @kun510

kun510 commented 2 weeks ago

@theduc0x I have fixed it

theduc0x commented 2 weeks ago

Can you show me how to fix it? @kun510

kun510 commented 2 weeks ago

@theduc0x Please show the error or problem so I can look into it

theduc0x commented 2 weeks ago

During the process of connecting to a Samsung TV, the connection will run successfully and enter onDeviceReady

image

Then I used NanoHttp to create a server and wanted to transfer images to the TV And I can see that it has displayed images on the server "http://192.168.1.212:8888/"

However, when running this function, it will report an error "error when show image: com.connectsdk.service.command.ServiceCommandError: Internal Server Error"

image

@kun510 Do you have any way?

kun510 commented 2 weeks ago

You run debug fun displayMedia in ConnectSDK DLNA Service, show String url, SubtitleInfo subtitle, String mimeType, String title, String description, String iconSrc, see if there are any errors, running on the server has nothing to do with DLNA Service @theduc0x

theduc0x commented 2 weeks ago

After a while of testing, I found that if it is an https url, it will be transmitted without error, but if it is http, the error will still be reported. @kun510