Page 1 of 1
[Solved] Issue with streaming/playing Web-Videos
Posted: Sun Aug 04, 2024 7:29 pm
by ums-user
Hello,
when trying to stream/play Web-Videos i receive this error message in the log-file:
ERROR RuntimeException in PlayerApiServlet: Cannot invoke "java.lang.Double.doubleValue()" because "duration" is null
Url samples:
https://mediandr-a.akamaihd.net/progres ... 500.hq.mp4
https://www.youtube.com/watch?v=5WUeOEkl270
Same problem with older Versions of UMS 13...
No problems with UMS streaming Videos from local Machine
No problems with playing Web-Videos in my Browser
No problems with other servers.
OS: Windows 11
Java: jre1.8.0_421 (32 + 64 installed)
What are possible solutions ?
Any ideas ?
thx
Re: Issue with streaming/playing Web-Videos
Posted: Mon Aug 05, 2024 4:59 am
by mik_s
I'm not sure about web videos as it is not a feature I use, but I know that work is being done to improve Youtube videos after they changed the handle URL.
I think this error is more to do with serving the web GUI by sending incorrect information, like the duration being null.
Code: Select all
ERROR 2024-08-04 09:17:57.908 [webgui-server-79] net.pms.network.webguiserver.servlets.PlayerApiServlet RuntimeException in PlayerApiServlet: Cannot invoke "java.lang.Double.doubleValue()" because "duration" is null
TRACE 2024-08-04 09:17:57.908 [webgui-server-79] net.pms.network.webguiserver.servlets.PlayerApiServlet {}
java.lang.NullPointerException: Cannot invoke "java.lang.Double.doubleValue()" because "duration" is null
at net.pms.encoders.HlsHelper.getHLSm3u8ForRendition(HlsHelper.java:286)
at net.pms.network.webguiserver.servlets.PlayerApiServlet.sendMedia(PlayerApiServlet.java:1144)
at net.pms.network.webguiserver.servlets.PlayerApiServlet.doGet(PlayerApiServlet.java:117)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:527)
at net.pms.network.webguiserver.GuiHttpServlet.service(GuiHttpServlet.java:61)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)
at org.eclipse.jetty.ee10.servlet.ServletHolder.handle(ServletHolder.java:736)
at org.eclipse.jetty.ee10.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1614)
at org.eclipse.jetty.ee10.servlet.ServletHandler$MappedServlet.handle(ServletHandler.java:1547)
at org.eclipse.jetty.ee10.servlet.ServletChannel.dispatch(ServletChannel.java:824)
at org.eclipse.jetty.ee10.servlet.ServletChannel.handle(ServletChannel.java:436)
at org.eclipse.jetty.ee10.servlet.ServletHandler.handle(ServletHandler.java:464)
at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:858)
at org.eclipse.jetty.server.Server.handle(Server.java:181)
at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:648)
at org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:403)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99)
at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:478)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:441)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:201)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:311)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164)
at java.base/java.lang.Thread.run(Unknown Source)
I'll make an issue on Github so the devs can take a look.
Re: Issue with streaming/playing Web-Videos
Posted: Mon Aug 05, 2024 6:07 pm
by SubJunk
Hi, thank you for reporting this. It is a known bug and we have fixed it in the next release. I can send you the fixed version if you want?
Re: Issue with streaming/playing Web-Videos
Posted: Mon Aug 05, 2024 8:22 pm
by ums-user
SubJunk wrote: ↑Mon Aug 05, 2024 6:07 pm
Hi, thank you for reporting this. It is a known bug and we have fixed it in the next release. I can send you the fixed version if you want?
Thank you for your quick help.
I would like to receive the fixed version.
I compared the program with similar ones.
Despite its complexity and performance, it has a clearly structured, user-friendly interface.
My appreciation to the development team and the support team
Kind regards
Re: Issue with streaming/playing Web-Videos
Posted: Tue Aug 06, 2024 11:22 am
by SubJunk
Thanks for your kind words! I have sent you a message with the fixed build. We have some other related changes that are almost ready too, like the ability to add a YouTube handle as a video feed. At the moment you need to get the RSS feed URL for it to work. Another bug we have fixed is that video feed titles are not fetched when they are added on the browser settings. These fixes will likely be merged in the next day or so.
Thanks again