daneren2005 / Subsonic

Home of the DSub Android client fork
GNU General Public License v3.0
582 stars 162 forks source link

DLNA casting fails with some renderers #990

Open Phyks opened 4 years ago

Phyks commented 4 years ago

Hi,

I am trying to use DSub to cast music onto a hifi system (Philips) using the UPNP/DLNA features. It does not work : the hifi system does not pass into "remote control" mode as it usually does with casting, DSub shows the music as playing with time counting, but the hifi system does not emit any sound (with or without proxy mode).

I found in the logs:

05-09 20:37:41.910 I/DownloadService( 2728): LOCAL => DLNA (DownloadFile (Disillusion))
05-09 20:37:41.912 I/DownloadService( 2728): PAUSED -> PREPARING (DownloadFile (Disillusion))
05-09 20:37:42.133 I/DownloadService( 2728): PREPARING -> PREPARING (DownloadFile (Disillusion))
05-09 20:37:42.199 W/GENAEventProcessor( 2728): Trying to recover from invalid GENA XML event: org.fourthline.cling.model.UnsupportedDataException: Can't transform message payload: END_TAG expected (position:START_TAG <DIDL-Lite>@24:233 in java.io.InputStreamReader@41445f18)
05-09 20:37:42.209 I/SubscriptionCallback( 2728): Invalid event message received, causing: org.fourthline.cling.model.UnsupportedDataException: Can't transform message payload: END_TAG expected (position:START_TAG <DIDL-Lite>@24:233 in java.io.InputStreamReader@41445f18)
05-09 20:37:42.316 I/DownloadService( 2728): PREPARING -> PAUSED (DownloadFile (Disillusion))
05-09 20:37:42.316 I/DownloadServiceLifecycleSupport( 2728): Serialized currentPlayingIndex: 2, currentPlayingPosition: 0
05-09 20:37:42.431 W/DLNAController( 2728): Seek failed: Error: Seek mode not supported (HTTP response was: 500 Internal Server Error)

which seemed to be related to my issue (I can provide more detailed logs if needed, although the rest does not seem to indicate any related error).

I know DLNA/Upnp casting is working with my phone and the hifi-system since https://github.com/trishika/DroidUPnP is working to play local files. My phone (Fairphone FP1, Android 4.2.2) can cast successfully to my smart TV (Samsung) from Dsub so it seems to be a DSUB <> Philips hifi system issue.

I could test as well with a more up to date phone (LG G6 with Android 9) which has the same issue with Dsub and my Hifi system.

Thanks!

Mikuni999 commented 3 years ago

Hi,

I have the same issue using Android 11 with:

Sony SRS-X9 = Work JBL Authentics L16 = Fail Pioneer A3 Wi-Fi Speaker = Fail Android AirReveiver app = Work

I am ready to tests for developers. It will be really great if DLNA can work with any DLNA devices.