[Solved] Issue with streaming/playing Web-Videos

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
ums-user
Posts: 2
Joined: Sat Aug 03, 2024 10:30 pm

[Solved] Issue with streaming/playing Web-Videos

Post 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
Attachments
ums2.log
(14.67 KiB) Downloaded 1189 times
ums_dbg_2024-08-04-09-19.zip
(131.35 KiB) Downloaded 992 times
User avatar
mik_s
Moderator
Posts: 1463
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Issue with streaming/playing Web-Videos

Post 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.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
User avatar
SubJunk
Lead Developer
Posts: 3805
Joined: Sun May 27, 2012 4:12 pm

Re: Issue with streaming/playing Web-Videos

Post 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?
ums-user
Posts: 2
Joined: Sat Aug 03, 2024 10:30 pm

Re: Issue with streaming/playing Web-Videos

Post 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
User avatar
SubJunk
Lead Developer
Posts: 3805
Joined: Sun May 27, 2012 4:12 pm

Re: Issue with streaming/playing Web-Videos

Post 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
Post Reply