home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Featured Plugins
MP2Extended
Plugin: MP2Extended
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FreakyJ" data-source="post: 1174914" data-attributes="member: 106003"><p>Another thing:</p><p>I am fixing the DLNA Server right now and with my sample videos I get a huuuge amoint of these exceptions:</p><p></p><p></p><p>This is because the MimeType is often Video/Unknown in my DB... Can't we have some kind of fallback profile and log a warning instead of an exception?</p><p></p><p>Edit:</p><p>The code of all evil <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p></p><p>[code]else if (container == VideoContainer.Hls)</p><p> {</p><p> if (videoCodec == VideoCodec.H264 && (audioCodec == AudioCodec.Unknown || audioCodec == AudioCodec.Aac))</p><p> {</p><p> valuesProfiles.Add("HLS");</p><p> }</p><p> }</p><p> else</p><p> {</p><p> throw new Exception("Video does not match any supported DLNA profile");</p><p> }[/code]</p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1174914, member: 106003"] Another thing: I am fixing the DLNA Server right now and with my sample videos I get a huuuge amoint of these exceptions: This is because the MimeType is often Video/Unknown in my DB... Can't we have some kind of fallback profile and log a warning instead of an exception? Edit: The code of all evil :D [code]else if (container == VideoContainer.Hls) { if (videoCodec == VideoCodec.H264 && (audioCodec == AudioCodec.Unknown || audioCodec == AudioCodec.Aac)) { valuesProfiles.Add("HLS"); } } else { throw new Exception("Video does not match any supported DLNA profile"); }[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Featured Plugins
MP2Extended
Plugin: MP2Extended
Contact us
RSS
Top
Bottom