UE40ES8000 (Samsung AllShare) and PS3mediaserver

Discuss alternative media renderers (not PS3) supported by PS3 Media Server (e.g. Xbox 360, TVs &c.)

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby troop » Thu May 03, 2012 11:08 am

The current problem looks to be Line 390

Code: Select all
} else if (method.equals("POST") && argument.equals("upnp/control/content_directory")) {


My TV is using double slashes so I'll need to change all these to be like:

Code: Select all
} else if (method.equals("POST") && (argument.equals("upnp/control/content_directory")) ||  argument.equals("/upnp/control/content_directory")))


It'd be preferrable to strip any preceding slash from URLs or POST arguments once, and not code in every exception we encounter.
troop
 
Posts: 12
Joined: Fri Apr 27, 2012 12:09 pm

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby Raptor399 » Thu May 03, 2012 6:37 pm

troop wrote:The current problem looks to be Line 390

Code: Select all
} else if (method.equals("POST") && argument.equals("upnp/control/content_directory")) {


My TV is using double slashes so I'll need to change all these to be like:

Code: Select all
} else if (method.equals("POST") && (argument.equals("upnp/control/content_directory")) ||  argument.equals("/upnp/control/content_directory")))


It'd be preferrable to strip any preceding slash from URLs or POST arguments once, and not code in every exception we encounter.

Just change the "equals(" into "endsWith(" and you're set without the extra code:

Code: Select all
} else if (method.equals("POST") && argument.endsWith("upnp/control/content_directory")) {


If you can confirm this works, I will adjust the code.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby troop » Sat May 05, 2012 2:05 pm

Ok I managed to get it functional with my TV.

If someone else wants to try it, here's the jar: https://docs.google.com/open?id=0B-cDgm ... GVvZ2k1Umc

Untick HTTP Engine V2 in General configuration, save, restart server.

Still not 100%, working through a bug where very populated folders time out the first time, but let me know if it works for you.
troop
 
Posts: 12
Joined: Fri Apr 27, 2012 12:09 pm

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby doctorx » Sat May 05, 2012 5:49 pm

Yes. Replacing the pms.jar file with the above one now makes my UN40ES6500F recognizes my PMS. Will report any issues.
doctorx
 
Posts: 8
Joined: Sun Apr 08, 2012 10:27 pm

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby burt35 » Sun May 06, 2012 8:56 am

tried your jar file ps3media server recognises tv but still doesnt show on tv. UE55ES8000.

edit:

all sorted thanks to a bit of help from troop. now working fine.
burt35
 
Posts: 3
Joined: Tue Jul 28, 2009 10:05 am

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby Akuka » Sun May 06, 2012 2:13 pm

Awesome Work. Thats full working for me. I hope that this fix be added in the next update.

Great Work Guys.

Ty soooo much.
Akuka
 
Posts: 4
Joined: Thu Apr 26, 2012 1:21 pm

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby Raptor399 » Sun May 06, 2012 2:30 pm

Akuka wrote:I hope that this fix be added in the next update.

It could be added if we knew what patch to the original source code Troop used in his final .jar. ;-)
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby troop » Sun May 06, 2012 2:35 pm

Raptor399 wrote:It could be added if we knew what patch to the original source code Troop used in his final .jar. ;-)


Hah was gonna PM you about that Raptor! :)
troop
 
Posts: 12
Joined: Fri Apr 27, 2012 12:09 pm

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby Raptor399 » Sun May 06, 2012 2:39 pm

troop wrote:Hah was gonna PM you about that Raptor! :)

lol... Okay, I'll try and exercise some patience. ;-)
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: UE40ES8000 (Samsung AllShare) and PS3mediaserver

Postby Raptor399 » Sun May 06, 2012 3:52 pm

Thanks for your hard work and sending me the code, troop!

I have cleaned up the code a bit and created a branch for it on GitHub.

Examining the patch, it occurs to me that this might be not merely a Samsung related fix. It looks like PMS does not handle enough of the UPnP protocol, a thought that already occurred to me earlier when submitting this bug of the same category.

I would like to make the fix more generic (read: less Samsung specific) plus RequestV2.java needs some love as well, before committing it to the ps3mediaserver/master.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

PreviousNext

Return to Alternative Media Renderers

Who is online

Users browsing this forum: No registered users and 1 guest