FAQ  •  Register  •  Login

Resume video playback on Samsung TVs

<<

sefo

Serviio newbie

Posts: 6

Joined: Thu Jan 06, 2011 5:46 pm

Location: Slovakia

Post Fri Jan 07, 2011 5:13 pm

Re: Resume video playback on Samsung TVs

jgdsm wrote:It should transparently work with any DLNA server though since the TV/client is responsible for storing last positions and telling the the server to deliver starting from either 0:00:00:00 or somewhere else.

It's not correct. TV is not responsible for storing last positions, but the server (Samsung PC Share Manager). This is reason why it's not working with the others servers, because they don't support it.

zip, I can help you to implement resume feature for C series. Today I spend lot of time with sniffing and I think I understood how it works.

First you need to implement X_SetBookmark operation, Samsung TV uses this operation to remember last video position.
So TV sends this request to server when video is stopped:
  Code:
POST /upnp/control/ContentDirectory1 HTTP/1.0
HOST: 192.168.100.100:52235
CONTENT-LENGTH: 339
CONTENT-TYPE: text/xml;charset="utf-8"
USER-AGENT: DLNADOC/1.50
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_SetBookmark"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_SetBookmark xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID>46</ObjectID><PosSecond>58</PosSecond><CategoryType>10</CategoryType><RID>0</RID></u:X_SetBookmark></s:Body></s:Envelope>


Serviio response for this request is:
  Code:
HTTP/1.1 500 Internal Server Error
CONTENT-LENGTH: 399
CONTENT-TYPE: text/xml; charset="utf-8"
DATE: Fri, 07 Jan 2011 15:16:27 GMT
EXT:
SERVER: MS-Windows/XP UPnP/1.0 PROTOTYPE/1.0


Samsung PC Share Manager 4.2 response is:
  Code:
HTTP/1.1 200 OK
CONTENT-LENGTH: 265
CONTENT-TYPE: text/xml; charset="utf-8"
DATE: Fri, 07 Jan 2011 15:15:24 GMT
EXT:
SERVER: MS-Windows/XP UPnP/1.0 PROTOTYPE/1.0

  Code:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_SetBookmarkResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_SetBookmarkResponse></s:Body></s:Envelope>

So, Serviio needs to process this request and remember client id, object_id, position in seconds. This is the first part.
The second change is required in DirectoryBrowsing

This is normal Servii DirectoryBrowsing response:
  Code:
<?xml version="1.0" encoding="utf-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;&lt;DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:sec="http://www.sec.co.kr/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;&lt;item id="V_F#FOL_R10$F137$MI1062" parentID="V_F#FOL_R10$F137" restricted="1"&gt;&lt;dc:title&gt;Bourne_Identity.mp4&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2002-06-14&lt;/dc:date&gt;&lt;upnp:genre&gt;Action&lt;/upnp:genre&gt;&lt;res bitrate="593000" duration="1:58:17.000" protocolInfo="http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_HD_1080i_AAC;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000" resolution="1920x1080" size="4209226587"&gt;http://192.168.100.100:8895/resource/1062/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC&lt;/res&gt;&lt;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000" resolution="106x160"&gt;http://192.168.100.100:8895/resource/1034/COVER_IMAGE&lt;/res&gt;&lt;res protocolInfo="http-get:*:smi/caption:*"&gt;http://192.168.100.100:8895/resource/1062/SUBTITLE.srt&lt;/res&gt;&lt;sec:CaptionInfoEx sec:type="srt"&gt;http://192.168.100.100:8895/resource/1062/SUBTITLE.srt&lt;/sec:CaptionInfoEx&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</Result><NumberReturned>1</NumberReturned><TotalMatches>1</TotalMatches><UpdateID>2</UpdateID></u:BrowseResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

This is Samsung PC Share Manager response:
  Code:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&apos;urn:schemas-upnp-org:metadata-1-0/upnp/&apos; xmlns:dlna=&quot;urn:schemas-dlna-org:metadata-1-0/&quot; xmlns:sec=&quot;http://www.sec.co.kr/&quot;&gt;&lt;item id=&quot;46&quot; parentID=&quot;12&quot; restricted=&quot;1&quot;&gt;&lt;dc:title&gt;Bourne_Identity&lt;/dc:title&gt;
&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;
&lt;sec:dcmInfo&gt;CREATIONDATE=0,FOLDER=The Bourne Identity,BM=58&lt;/sec:dcmInfo&gt;
&lt;dc:date&gt;2010-07-11&lt;/dc:date&gt;
&lt;sec:CaptionInfoEx sec:type=&quot;srt&quot;&gt;http://192.168.100.100:53235/46.SRT&lt;/sec:CaptionInfoEx&gt;
&lt;sec:MetaFileInfo sec:type=&quot;mta&quot;&gt;http://192.168.100.100:53235/46.MTA&lt;/sec:MetaFileInfo&gt;
&lt;res protocolInfo=&quot;http-get:*:video/mp4:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000&quot; size=&quot;4209226587&quot; resolution=&quot;1920x1080&quot; duration=&quot;1:58:17&quot;&gt;http://192.168.100.100:53235/46.MP4&lt;/res&gt;
&lt;res protocolInfo=&quot;http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000&quot;&gt;http://192.168.100.100:53235/46.MTN&lt;/res&gt;
&lt;/item&gt;
&lt;/DIDL-Lite&gt;</Result><NumberReturned>1</NumberReturned><TotalMatches>1</TotalMatches><UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>


Important part for us is:
  Code:
&lt;sec:dcmInfo&gt;CREATIONDATE=0,FOLDER=The Bourne Identity,BM=58&lt;/sec:dcmInfo&gt;

BM=58 is remembered last video position in seconds. (PosSecond element from X_SetBookmark request)

I think that's all what needs to be implemented.
Feel free to contact me via PM, maybe it will be easier for me to explain it in Czech/Slovak.
Samsung LE40C550J1W | Panasonic TX-P42G20E | Serviio 0.5 beta 5 | Windows 7
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jan 08, 2011 11:27 am

Re: Resume video playback on Samsung TVs

Great stuff, I'll have a look after I release 0.5: https://bitbucket.org/xnejp03/serviio/i ... amsung-tvs
<<

sefo

Serviio newbie

Posts: 6

Joined: Thu Jan 06, 2011 5:46 pm

Location: Slovakia

Post Sun Jan 09, 2011 12:23 pm

Re: Resume video playback on Samsung TVs

zip thanks.

FYI. I made the following ugly patch in SamsungDLNAMessageBuilder.java file to test it, and it worked. Every video has the bookmark at position of 100 seconds.
  Code:
protected void storeItemFields(Node itemNode, DirectoryObject object)
  {
    super.storeItemFields(itemNode, object);

    Document document = itemNode.getOwnerDocument();
    if (document == null)
    {
      document = (Document)itemNode;
    }
   
    Node dcmInfo = document.createElement("sec:dcmInfo");
    dcmInfo.setTextContent("CREATIONDATE=0,FOLDER=" + object.getTitle() + ",BM=100");
    itemNode.appendChild(dcmInfo);
   
    Node subtitlesNode = storeNode(itemNode, object, ClassProperties.SUBTITLES_URL, "sec:CaptionInfoEx", false);
    storeStaticAttribute(subtitlesNode, "sec:type", "http://www.sec.co.kr/", "srt");
  }
Samsung LE40C550J1W | Panasonic TX-P42G20E | Serviio 0.5 beta 5 | Windows 7
<<

Karuko

Serviio newbie

Posts: 6

Joined: Mon Jan 24, 2011 10:01 am

Post Mon Jan 24, 2011 10:04 am

Re: Resume video playback on Samsung TVs

This is very interesting, whenever this is set up I can move the main disk from the TV to Serviio.
Thanks for your work!

BTW does chaptering work in a similar way??
<<

Troutking

Streaming enthusiast

Posts: 30

Joined: Fri Jan 28, 2011 10:42 pm

Location: Norway

Post Thu Feb 03, 2011 4:58 pm

Re: Resume video playback on Samsung TVs

Really start to miss this feature, and hope it will be a part of the new edition of SERVIIO. I have a bad habit of pressing program up/down button on the remote, and then have to start over again :oops:
TV: Samsung UE40C8705
FW: T-VALDEUC-3007.1
<<

dalanik

Serviio newbie

Posts: 18

Joined: Thu Jan 20, 2011 10:14 am

Post Tue Feb 08, 2011 9:20 am

Re: Resume video playback on Samsung TVs

Both of these things would be awesome. Or at least proper ffd. Samsung TV's jump always (C series) like 24 seconds forward, and it takes like 6 seconds, so fast forwarding to the middle of the film takes forever... :) Then, occasionaly I get "network disconnected" message, and I have to start all over again w/o the possibility of resuming the playback...

D.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Feb 08, 2011 10:48 am

Re: Resume video playback on Samsung TVs

dalanik wrote:so fast forwarding to the middle of the film takes forever... :) D.

You just have to hold the right arrow for a longer time
<<

alvingo

Serviio newbie

Posts: 3

Joined: Sun Dec 05, 2010 4:05 am

Post Wed Feb 23, 2011 5:40 am

Re: Resume video playback on Samsung TVs

sefo wrote:zip thanks.

FYI. I made the following ugly patch in SamsungDLNAMessageBuilder.java file to test it, and it worked. Every video has the bookmark at position of 100 seconds.
  Code:
protected void storeItemFields(Node itemNode, DirectoryObject object)
  {
    super.storeItemFields(itemNode, object);

    Document document = itemNode.getOwnerDocument();
    if (document == null)
    {
      document = (Document)itemNode;
    }
   
    Node dcmInfo = document.createElement("sec:dcmInfo");
    dcmInfo.setTextContent("CREATIONDATE=0,FOLDER=" + object.getTitle() + ",BM=100");
    itemNode.appendChild(dcmInfo);
   
    Node subtitlesNode = storeNode(itemNode, object, ClassProperties.SUBTITLES_URL, "sec:CaptionInfoEx", false);
    storeStaticAttribute(subtitlesNode, "sec:type", "http://www.sec.co.kr/", "srt");
  }

Hi Sefo,
Will this work with rew as well? I'm getting excited on this guys.
My long awaited feature has now developed.
Big Cheers for you.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sat Feb 26, 2011 6:08 pm

Re: Resume video playback on Samsung TVs

https://bitbucket.org/xnejp03/serviio/i ... amsung-tvs

Bitbucket Update: This has now been marked as RESOLVED as of version 0.5.1
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

mavika

User avatar

Streaming enthusiast

Posts: 35

Joined: Sun Feb 06, 2011 9:26 am

Location: Hungary

Post Wed Mar 02, 2011 6:08 pm

Re: Resume video playback on Samsung TVs

Tested 0.5.1 beta on Samsung UE40C6500UW, works perfectly.
Thanks to everyone who made this great feature come true. :D
Attachments
serviio 0.5.1 resume playback.jpg
serviio 0.5.1 resume playback.jpg (58.43 KiB) Viewed 26458 times
<<

dr4x0n

Post Tue Mar 15, 2011 5:20 pm

Re: Resume video playback on Samsung TVs

Will this feature ever be available on the Samsung B series?
dr4x0n
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Mar 15, 2011 5:26 pm

Re: Resume video playback on Samsung TVs

dr4x0n wrote:Will this feature ever be available on the Samsung B series?
dr4x0n

No, the TV doesn't support it unfortunately.
<<

riemen

Serviio newbie

Posts: 2

Joined: Sun Mar 20, 2011 5:32 am

Post Sun Mar 20, 2011 5:37 am

Re: Resume video playback on Samsung TVs

Thanks sooo much for adding this feature. Resume Playback was the only reason I was hanging on to PC Share Manager. I'm uninstalling it now for good!! That is, right after I send a Paypal donation to Servio.

Thanks for making this happen.

Pete R.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sun Mar 20, 2011 12:24 pm

Re: Resume video playback on Samsung TVs

______ UPDATE ______

For some reason bookmark have stopped working or work erracticly and at the moment the serviio team have no idea why, we are working to get this sorted and will post back here once we fix this, if you find you can get bookmarks working consistantly and can explain exactly how you made this work then please post, otherwise you will just need to wait till its sorted. :)

see this post for updates : viewtopic.php?f=10&t=1981&start=30#p11208

Make sure you go all the way to end and read post by ZIP or myself.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

dr4x0n

Post Sat Apr 02, 2011 12:48 am

Re: Resume video playback on Samsung TVs

Just wanted to run this by one more time. I have a UN46B8500 series TV. In order to get the Fast Forward and Rewind to work I run the .mkv 720p files through XenonMKV which strips the MKV wrapper and turns it into a MP4 file that can be FF and REW from the Serviio software. I do not get the Play Continuously (Resume) Press D Blue button when stopping and starting the file. If I copy the MKV or MP4 file over to a USB drive and run it directly from the TV then I also get FF and REW with the MKV file and both allow the Play Continuously (Resume) D Blue button option.

So the TV seems to be capable what is missing on the software side that would allow these options to be put in Serviio?

I have attached some screen shots of the files playing from a USB thumb drive.

Thanks for looking at this again Zip. I have been enjoying the software tremendously. Also since I could never ever get the Samsung software installed to my Windows 7 computer, your software has been awesome.

I have very little programming experience so I was just mainly looking for a more detailed explanation of why this is hard to make happen.

Thanks.

ImageIMAG0301 by dr4x0n, on Flickr
ImageIMAG0302 by dr4x0n, on Flickr

dr4x0n
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sat Apr 02, 2011 8:22 am

Re: Resume video playback on Samsung TVs

dr4x0n wrote:Just wanted to run this by one more time. I have a UN46B8500 series TV. In order to get the Fast Forward and Rewind to work I run the .mkv 720p files through XenonMKV which strips the MKV wrapper and turns it into a MP4 file that can be FF and REW from the Serviio software. I do not get the Play Continuously (Resume) Press D Blue button when stopping and starting the file. If I copy the MKV or MP4 file over to a USB drive and run it directly from the TV then I also get FF and REW with the MKV file and both allow the Play Continuously (Resume) D Blue button option.

So the TV seems to be capable what is missing on the software side that would allow these options to be put in Serviio?

I have attached some screen shots of the files playing from a USB thumb drive.

Thanks for looking at this again Zip. I have been enjoying the software tremendously. Also since I could never ever get the Samsung software installed to my Windows 7 computer, your software has been awesome.

I have very little programming experience so I was just mainly looking for a more detailed explanation of why this is hard to make happen.

Thanks.

ImageIMAG0301 by dr4x0n, on Flickr
ImageIMAG0302 by dr4x0n, on Flickr

dr4x0n


B series devices does NOT support it.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
Next

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 26 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.