WebChimera.js | libvlc binding for Electron | Dektop Application library
kandi X-RAY | WebChimera.js Summary
kandi X-RAY | WebChimera.js Summary
libvlc binding for Electron.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of WebChimera.js
WebChimera.js Key Features
WebChimera.js Examples and Code Snippets
Community Discussions
Trending Discussions on WebChimera.js
QUESTION
I'm trying to include a VLC video playing in my Electron app, which is possible through WebChimera.js. This package is distributed a bit weirdly (to me at least), to use it you need to require wcjs-prebuilt, specify some settings in package.json and configure Webpack to allow importing .node files as explained in this Wiki page for WebChimera.js.
However I believe this Wiki page is outdated, as loaders isn't a valid key anymore in a Webpack config. I'm not very experienced using Webpack so most of this is new to me. Also note that this Wiki explanation used a fork of node-loader, although this fork seems to be merged to the actual node-loader now (?).
I now use this Webpack config:
...ANSWER
Answered 2021-May-15 at 16:41I'm able to get vue electron building with wcjs-prebuilt
using a vue.config.js
like this. You will also need to set the VLC_PLUGIN_PATH
correctly or video won't play.
QUESTION
WebChimera is not supported Linux officially, But I have used that on a Ubuntu 16.04 by upgrading VLC to 2.2.4 and using a pre-built package fount at WebChimera.js v0.2.7 Releases (WebChimera.js_electron_1.4.13_x64_linux.zip)
I have built WebChimera myself on Ubuntu 16.04 and VLC 2.2.2 (official version of VLC on 16.04). Every thing is OK for some videos but for some of videos, I just can hear the audio when playing and there is a black screen (no video output but audio is OK). I don't want to upgrade my VLC to 2.2.4. How can I fix this problem?
On electron v1.6.8, console writes this error:
...ANSWER
Answered 2017-Dec-29 at 21:47Updating VLC to 2.2.4 and upper resolved my problem.
QUESTION
I have a video stream using the UDP protocol, accessible through either rtp://ipadd:port
or udp://@:port
. I have absolutely no control over the server, so I can't change it to serve the stream over a WebSocket or transcode it to a compatible format on-the-fly.
I want to display the stream in an Electron app, however the sources I have found from a Google search all tell me that what I wish to accomplish requires me to put together an undesirably hacky solution using something like webchimera.js
, for example.
I have tried dropping the URL in a tag as per this answer, but Electron says that the
udp
and rtp
URL schemes are not recognized. I have also tried require('child_process').exec
with a static build of ffplay
, which works, but it displays the stream on a whole separate window, which is not what I want. ActiveX, NPAPI, and other plugin solutions are not an option because Electron does not support them.
Am I out of luck, or is there a solution that I haven't come upon yet?
...ANSWER
Answered 2017-Feb-27 at 13:29Figured it out by looking at pages and pages of other people's code.
Apparently my initial understanding of WebSockets was incorrect - I would not need a server-side change to use WebSockets in my situation.
I had to transcode the stream into MPEG2 from within Electron using an ffmpeg
Node.js wrapper, which sends the video to an Express server instance, which then serves the video within a static Web page rendered by jsmpeg
. The static Web page is then displayed as an IFrame within the main Electron app page.
The resulting stream has considerably more visual artifacts than what one would see when playing the raw UDP stream with ffplay
, and this approach probably introduces a lot of latency, but it works well enough for my needs.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install WebChimera.js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page