Skip to main content
Aug 10, 2020 11:23 AM UTC
Solved

FileRepository - Partial Content Requests - Unable to seek video.

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?

smainenteAnswer
Aug 17, 2020 9:37 AM UTC

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.

3 replies

Aug 14, 2020 9:54 AM UTC

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

mettAuthor
Aug 17, 2020 8:42 AM UTC

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

disabled.png

smainenteAnswer
Aug 17, 2020 9:37 AM UTC

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.