LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HTML 5 enable video on ni web server

Hello, 

I want to use NI web server to allow acces remotly on a webpage with html video.

If you take that simple code on test.html and the video mov_bbb.mp4 and place it on 

C:\Program Files (x86)\National Instruments\Shared\NI WebServer\www\test

http://localhost:8080/test/test.html

The webserver do not allow to play the video. 

Do we need to change a INI file of the web server to allow html 5 video? 

Regards

 

 

 

 

Samuel G. | GEMESIS

Certified LabVIEW Architect

Certified TestStand Developer

GEMESIS.EU

0 Kudos
Message 1 of 8
(4,186 Views)

Hello Samuel,

 

I tried to do it on my computer and had no issue. I just modified the path of the video file for the browser to find it.

Capture.PNG

 

The URL used is: http://localhost:8080/test.html

I put in attachment the html file used. I also tried with your video successfully.

Can you test to see if the behaviour is still generating an error on your side?

 

Hope everything is going great in Lyon.

 

Bye!

 

PS: I tested it on IE11.

 

0 Kudos
Message 2 of 8
(4,132 Views)

Hello,

Pierre denis I am fine and you 😉

You are right it is working well with IE.

But it is not working on Chrome and other web browser. Apparently they are more strict about security or the ni web server not allowed to load the video.

Do you have an idea? 

Sam

Samuel G. | GEMESIS

Certified LabVIEW Architect

Certified TestStand Developer

GEMESIS.EU

0 Kudos
Message 3 of 8
(4,116 Views)

Hello Sam,

 

I tried to go though other browser and indeed, there is a restriction coming from the browser's security or the server.

I think one of the option would be to try other formats.

 

You can also use this solution: LabVIEW Web UI Builder

As you can see here, there is a category named "image & media" which support this following formats: format allowed

This product is certified to work on any OS and any browser (link).

 

Keep us inform if you ever find a workaround.

 

Thanks in advance.

 

Bye

0 Kudos
Message 4 of 8
(4,109 Views)

But the Web UI Builder is going obsolete 😉

Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.

0 Kudos
Message 5 of 8
(4,099 Views)

Hi Samuel,

 

I don't have a great explanation for why video files hosted in the \NI WebServer\www are not properly served to the Web Browser. A possible workaround is instead to use a LabVIEW Web Service and add the html and video using the instructions in the document Integrating Static Content into a Web Service.

 

I have created a LabVIEW Web Service using the example files you provided (attached) and it seems to be served in a way the browsers accept.


Milan
0 Kudos
Message 6 of 8
(4,089 Views)

Hello and thanks for your reply. 

 

And of course I will not use WebUI builder for the reason that Eric explained.

 

Actually, I remember to use WebUI builder and I remember that somewhere on the server you need some to change some .INI files or other to allow access of files.

 

@ MilanR : Thanks for your reply I will try your workaround. But what about a full website without LabVIEW services?  It is not possible to use the web server as a server?

I also notice that the browser detect a connection not secure. Could it be the issue?  

 

Samuel G. | GEMESIS

Certified LabVIEW Architect

Certified TestStand Developer

GEMESIS.EU

0 Kudos
Message 7 of 8
(4,069 Views)

 @ MilanR : I confirm it is working this the web services? Do you have an idea why? 

Samuel G. | GEMESIS

Certified LabVIEW Architect

Certified TestStand Developer

GEMESIS.EU

0 Kudos
Message 8 of 8
(4,061 Views)