본문 바로가기

DLNA

삼성 TV 재생 이슈

※ 유독 삼성 TV만 DLNA로 쐈을 경우 재생이 4~5초 정도에 끊겼다. 그런데 Windows DMS의 컨텐츠와  PC All Share DMS의 컨텐츠는 재생이 된다는 게 문제다.

그래서 우선 Window DMS와 PC All Share DMS의 Header 정보와 차이점을 확인한 후 이와 동일하게 Header 정보를 구성하기로 했다.

그런데 특이사항은 TV상에서 재생이 중단되고 해당 시점에 TV가 M-SEARCH를 날린다는것!!!!

● Window header

HEAD /WMPNSSv4/492923222/0_e0I4RDZCRjgwLTY3OTQtNEFBRS04QzMxLThEOENBNUQ2QTJBMn0uMC40.mp3 HTTP/1.0

getcontentFeatures.dlna.org: 1

Host: 192.168.0.2:10243

 

HTTP/1.1 200 OK

Content-Length: 3009280

Content-Type: audio/mpeg

Last-Modified: Tue, 26 Mar 2013 02:55:49 GMT

Server: Microsoft-HTTPAPI/2.0

Accept-Ranges: bytes

ContentFeatures.DLNA.ORG: DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000

TransferMode.DLNA.ORG: Streaming

Date: Mon, 20 May 2013 06:45:37 GMT

Connection: close

GET /WMPNSSv4/492923222/0_e0I4RDZCRjgwLTY3OTQtNEFBRS04QzMxLThEOENBNUQ2QTJBMn0uMC40.mp3 HTTP/1.0

getcontentFeatures.dlna.org: 1

transferMode.dlna.org: Streaming

getMediaInfo.sec: 1

Host: 192.168.0.2:10243

 

HTTP/1.1 200 OK

Content-Length: 3009280

Content-Type: audio/mpeg

Last-Modified: Tue, 26 Mar 2013 02:55:49 GMT

Server: Microsoft-HTTPAPI/2.0

Accept-Ranges: bytes

ContentFeatures.DLNA.ORG: DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000

TransferMode.DLNA.ORG: Streaming

Date: Mon, 20 May 2013 06:45:37 GMT

Connection: close

〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓

Windows DMS와의 차이점은

Accept-Ranges:bytes

Connection: close

DLNA.ORG_CI=0;

DLNA.ORG_FLAGS=01700000000000000000000000000000  => DLNA.ORG_FLAGS=01500000000000000000000000000000

 

이 네 군데였다. 그래서 동일하게 적용하였으나 결과는 실패!!!

원인은 Socket Timeout으로 인해 DMS에서 연결을 끊어버림. 그래서 Timeout시간은 0으로 변경했다.

 

내가 얻은 교훈? Header 정보는

contentFeatures.dlna.org의 PN

transferMode.dlna.org: Streaming

이 두가지만 제대로 들어가면 header 정보에는 크게 문제 되지 않을 것이라는 ~~~

 

이상~~~~~~~~~~~~~~~~~~~~~~~

 

'DLNA' 카테고리의 다른 글

리눅스상에서 app 빌드시 libupnp에서의 pthread 링크 에러  (0) 2014.12.17
itoa in c  (0) 2014.08.18
upnp 접근제한  (0) 2013.05.22