Skip to main content
1-Visitor
August 10, 2020
Solved

FileRepository - Partial Content Requests - Unable to seek video.

  • August 10, 2020
  • 1 reply
  • 1785 views

Hello,

 

I have a video file in path: http://localhost/Thingworx/FileRepositories/myRepository/myVideo.mp4 

 

I tried to use this url in my HTML5 Video tag as a source src.

 

Video starts, but I cannot seek on slider.

When I try to manually set the currentTime value in JS, it resets to Zero immediately.

When I try to send a request with 'Range' header, it always responds with full content.

 

My TWX runs on Tomcat server.

I tried to edit web.xml file by setting the useAcceptRanges and allowPartialPut on true, but it didn't help.

 

I think it's an Partial Content issue, but how can I fix it?

Best answer by smainente

Hi @mett, HTTP range has been partially implemented in 9.0.

https://www.ptc.com/en/support/article/CS324359

More advanced range options will be support in a future patch release of 8.5 (backport of the feature) and 9.0.

1 reply

16-Pearl
August 14, 2020

Hi @mett, I think ThingWorx does not support streaming videos. The attributes you set in web.xml are for the default servlet.

 

I guess you can post an Idea to request for this functionality:

https://community.ptc.com/t5/ThingWorx-Ideas/idb-p/thingworxideas

mett1-VisitorAuthor
1-Visitor
August 17, 2020

Thank you, but the button "Suggest an Idea" is disabled 😞

disabled.png

smainente16-PearlAnswer
16-Pearl
August 17, 2020

Hi @mett, HTTP range has been partially implemented in 9.0.

https://www.ptc.com/en/support/article/CS324359

More advanced range options will be support in a future patch release of 8.5 (backport of the feature) and 9.0.