Hello,
i have a video file that is user manual for SCADA operators.
I would like to embed it in panel, so operators can easily find it and view it in case of emergency.
Is there a way to embed video file in panel?
We have no video licence.
Best regards,
Vedad
Is it possible to import video file into panel
- vedadramovic
- Posts:121
- Joined: Mon Apr 07, 2014 10:36 am
Is it possible to import video file into panel
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Is it possible to import video file into panel
Yes you can.
WebView.ewo uses the WebKit engine, which can use the HTML5 video tag.
create a panel with a WebView.ewo
The init script shall contain e.g.:
The video.html file contains:
and the video.mp4 file also resides in your project/data dir
WebView.ewo uses the WebKit engine, which can use the HTML5 video tag.
create a panel with a WebView.ewo
The init script shall contain e.g.:
Code: Select all
main()
{
this.url = "file://" + getPath(DATA_REL_PATH, "video.html");
}
Code: Select all
- vedadramovic
- Posts:121
- Joined: Mon Apr 07, 2014 10:36 am
Re: Is it possible to import video file into panel
Hi Martin,
first of all thank you very much for fast reply.
I have tried WebView using EWO, as you suggested, but I was not able to play the video.
Widget is loading but the video is not shown, only white square.
I am able to load web page using WebView, so the widget is working.
I tried to play a video on YouTube, but video will not play.
We do not have license for video!
Is it because of absance of video license, or something else?
Please help, we need this feature (playing video file), if available.
Best regards,
Vedad
first of all thank you very much for fast reply.
I have tried WebView using EWO, as you suggested, but I was not able to play the video.
Widget is loading but the video is not shown, only white square.
I am able to load web page using WebView, so the widget is working.
I tried to play a video on YouTube, but video will not play.
We do not have license for video!
Is it because of absance of video license, or something else?
Please help, we need this feature (playing video file), if available.
Best regards,
Vedad
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Is it possible to import video file into panel
The WebView.ewo has nothing to do with the Video license. It is a plain HTML5 feature to have the video tag in an HTML page.
I did my tests with 3.13 on Linux.
With which version are you testing ?
I did my tests with 3.13 on Linux.
With which version are you testing ?
- vedadramovic
- Posts:121
- Joined: Mon Apr 07, 2014 10:36 am
Re: Is it possible to import video file into panel
3.11 and 3.12 on windows
When I try to play video on YouTube it reports that it needs Adobe Flash Player HTML5
Both 3.11 and 3.12 uses QT version 4.8.4.
I downloaded video below as .mp4, and trying to play it
https://www.youtube.com/watch?v=0HDZWeEDhAc
Please find attached video I am using.
When I try to play video on YouTube it reports that it needs Adobe Flash Player HTML5
Both 3.11 and 3.12 uses QT version 4.8.4.
I downloaded video below as .mp4, and trying to play it
https://www.youtube.com/watch?v=0HDZWeEDhAc
Please find attached video I am using.
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Is it possible to import video file into panel
I'm not sure but it is probably due to the Qt version being too old (not having HTML5 support in WebKit).
Can you upgrade to 3.13 ?
Otherwise, you could try to install the flash player browser plugin and enable plugins in the WebView.ewo by setting:
WebView.setAttribute("PluginsEnabled", true);
Can you upgrade to 3.13 ?
Otherwise, you could try to install the flash player browser plugin and enable plugins in the WebView.ewo by setting:
WebView.setAttribute("PluginsEnabled", true);
- vedadramovic
- Posts:121
- Joined: Mon Apr 07, 2014 10:36 am
Re: Is it possible to import video file into panel
I am not sure if our license allows us to upgrade to 3.13.?
I could try to install flash player.
Thank you Martin.
I could try to install flash player.
Thank you Martin.