# \[BYES Apps\] Video player component

**URL:** <https://forum.inductiveautomation.com/t/byes-apps-video-player-component/7160>\
**Category:** 3rd Party Modules\
**Created:** [August 28, 2013, 2:12pm UTC](https://forum.inductiveautomation.com/t/byes-apps-video-player-component/7160 "2013-08-28T14:12:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 28, 2013, 2:12pm UTC](https://forum.inductiveautomation.com/t/byes-apps-video-player-component/7160/1 "2013-08-28T14:12:20Z")

</div>

An video component based on VLC/VLCj  
H264 compatible and all the vlc codec supported !  
Version 1.0.0

Be careful :  
Secure multiple instance with use of an external JVM for each component decoding process  
for windows ignition client only  
Tested with Ignition 7.6.2

See module documentation for more details…  
Installation steps :

1. Install VLC on windows client  
[videolan.org/vlc/index.html](http://www.videolan.org/vlc/index.html)

2)Install VideoPlayer-signed-X.X.X.modl  
Configuration\Module\Install or Upgrade a Module…  
VideoPlayer-signed-X.X.X.modl =\> see last post

3)Install OutOfProcessPlayer jars on the client :  
Copy in one directory of your choice (for example : D:/OutOfProcessPlayer), the followings jars :  
videoplayer-client.jar  
jna-3.5.2.jar  
platform-3.5.2.jar  
vlcj-2.4.1.jar

videoplayer-client.jar =\> see last post  
[attachment=1]jna-3.5.2.jar[/attachment]  
[attachment=0]platform-3.5.2.jar[/attachment]  
[attachment=2]vlcj-2.4.1.jar[/attachment]

4)Launch the designer  
A new palette is added

5)Test in designer or vision client  
Add a components and Complete bindings :

MediaResourceLocator : The MRL syntax is: [[access][/demux]://]URL[#[title][:chapter][-[title][:chapter]]] [:option=value …]  
Example for a file :  
file:///D:/videos/MyVideo.mkv  
for a stream (see camera manual)  
for example : rtsp://10.22.38.1/?line=1&inst=2&h26x=4

PathOutOfProcessPlayer : Path for OutOfProcessPlayer jars, for example : D:/OutOfProcessPlayer  
PathVLC : Path for VLC directory, for example : C:/Program Files/VideoLAN/VLC

Select " Start" MediaPlayerCommand.

HTH.  
Feedbacks are welcome to improve it or correct bugs !

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 28, 2013, 2:54pm UTC](https://forum.inductiveautomation.com/t/byes-apps-video-player-component/7160/2 "2013-08-28T14:54:47Z")

</div>

9 simultaneous video components displayed in Ignition Vision !  
[attachment=0]ex1.png[/attachment]

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 28, 2013, 6:23pm UTC](https://forum.inductiveautomation.com/t/byes-apps-video-player-component/7160/3 "2013-08-28T18:23:40Z")

</div>

Bug in PathVLC property setting. ☹

In Designer, when modify PathOutOfProcessPlayer or PathVLC after a MediaPlayerCommand,  
close the windows and re-open before starting another MediaPlayerCommand.

I’ll try to improve that in next release.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [October 23, 2013, 3:24pm UTC](https://forum.inductiveautomation.com/t/byes-apps-video-player-component/7160/4 "2013-10-23T15:24:15Z")

</div>

A new release for the free video module based on VLC :

Major Improvements :

1. Global Error Handling (logs, if path are not correct, modification and command retry are allowed : no need to destroy and create the component, …)
2. Detect VLC install directory on Windows (if VLC path is empty). VLC Path only required for Linux
3. Add Java Path to specify a particular JRE or if Java.home detection don’t works.

Tested on Win 7 32bits with ignition 7.6.x and VLC 2.0.8 and 2.1.0  
Try on Linux (VLC path property required !), no tested for this moment.

HTH.  
Feedbacks are welcome to improve it or correct bugs or simply if it works for your configuration !

[attachment=1]VideoPlayer-signed-v1.1.0.modl[/attachment]

[attachment=0]videoplayer-client.jar[/attachment]

Other files (jna-3.5.2.jar, platform-3.5.2.jar,vlcj-2.4.1.jar) are unchanged =\> see previous post

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [March 20, 2015, 6:19pm UTC](https://forum.inductiveautomation.com/t/byes-apps-video-player-component/7160/5 "2015-03-20T18:19:53Z")

</div>

This module was only a proof of concept for video integration inside Ignition.  
Not for use in production. No licence for vlcj.  
It would not be upgraded.

vlcj now include out of process support with vlcj-pro :  
[http://capricasoftware.co.uk/#/projects/vlcj-pro](http://capricasoftware.co.uk/#/projects/vlcj-pro)

You can perhaps contact his developper [mark.lee@capricasoftware.co.uk](mailto:mark.lee@capricasoftware.co.uk) for the release of a more stable module, with licence respect.

Best,  
Lionel.
