-
-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DLNA headers #242
base: master
Are you sure you want to change the base?
Add DLNA headers #242
Conversation
if a subtitle by the name of video.srt is present in the same folder as the video file => use it.
could you remove the 2nd pair of DLNA headers we set further down then? That way we don't set them twice. Other than that LGTM |
Well, the second pair of DLNA headers are the entire commit as he removed the subtitle stuff. But he removed the subtitle stuff because he realized that he's setting a subtitle from a server that he wasn't creating. Even if he would though.. Or tweak it to use peerflix's http server for this, setting subtitles with the |
@@ -164,6 +164,8 @@ var createServer = function (e, opts) { | |||
response.statusCode = 206 | |||
response.setHeader('Content-Length', range.end - range.start + 1) | |||
response.setHeader('Content-Range', 'bytes ' + range.start + '-' + range.end + '/' + file.length) | |||
response.setHeader('transferMode.dlna.org', 'Streaming') | |||
response.setHeader('contentFeatures.dlna.org', 'DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's already done above fyi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oups sorry reviving an old thread mb
Add relevant DLNA headers to the server.