ConnectSDK / Connect-SDK-Android-API-Sampler

Creative Commons Zero v1.0 Universal
24 stars 21 forks source link

DLNA on Philips 32PFS6805/12 #49

Open MykhailoLevchuk opened 2 years ago

MykhailoLevchuk commented 2 years ago

When I connect to TV with DLNA I receive an error

{devices: [{"UUID":"","friendlyName":"32PFS6805/12","id":"68686e62-fc50-44e9-bccc-e3dce6d0b0b8","ipAddress":"192.168.137.212","lastConnected":1663081518,"lastDetection":1663081373,"lastKnownIPAddress":"192.168.137.212","modelName":"DLNA","port":0}]};
D/2ndScreenAPP: onPairingSuccess
D/2ndScreenAPP: successful register
W/System.err: org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT NOT_IMPLEMENTED@1:16 in java.io.StringReader@f9ab87d) 
W/System.err:     at com.android.org.kxml2.io.KXmlParser.next(KXmlParser.java:440)
W/System.err:     at com.android.org.kxml2.io.KXmlParser.next(KXmlParser.java:321)
W/System.err:     at com.android.org.kxml2.io.KXmlParser.nextTag(KXmlParser.java:2108)
W/System.err:     at com.connectsdk.service.upnp.DLNAMediaInfoParser.getData(DLNAMediaInfoParser.java:45)
W/System.err:     at com.connectsdk.service.upnp.DLNAMediaInfoParser.getURL(DLNAMediaInfoParser.java:143)
W/System.err:     at com.connectsdk.service.upnp.DLNAMediaInfoParser.getMediaInfo(DLNAMediaInfoParser.java:68)
W/System.err:     at com.connectsdk.service.upnp.DLNAHttpServer.handleEntry(DLNAHttpServer.java:261)
W/System.err:     at com.connectsdk.service.upnp.DLNAHttpServer.handleLastChange(DLNAHttpServer.java:199)
W/System.err:     at com.connectsdk.service.upnp.DLNAHttpServer.processRequests(DLNAHttpServer.java:177)
W/System.err:     at com.connectsdk.service.upnp.DLNAHttpServer.access$000(DLNAHttpServer.java:27)
W/System.err:     at com.connectsdk.service.upnp.DLNAHttpServer$1.run(DLNAHttpServer.java:57)
W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err:     at java.lang.Thread.run(Thread.java:923)

And if I try to play mp4 I get an error and the TV is fizzed

E/Error: Error playing video
    com.connectsdk.service.command.ServiceCommandError: Failed to connect to /192.168.137.212:2870
        at com.connectsdk.service.DLNAService$6.run(DLNAService.java:837)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:923)