Comments (6)
Yeah, we see the possibilities of such functionality, which is now possible with the latest XSplit Broadcaster client. We will implement 'unsafe' methods on the framework (methods that would prompt the users if they would allow the plugin some rights) possibly on the next version :)
We generally consider methods that could write/manipulate data on the user's disk as unsafe due to obvious reasons (ie. someone could write malicious code to write some data to the users disk)
from xjs.
I've been considering creating a wrapper for this exact scenario in nodejs as an easy workaround. I run a nodejs program as part of my solution, which writes and interacts with the local file system & AWS resources, twitter, etc.
I spun up an example about a month ago based on stream control http://www.farpnut.net/streamcontrol qt based app.
https://github.com/tkntobfrk/streamControl
Plugin script plugin in xsplit, which then interacts with nodejs, which in turn does whatever you need locally and/or externally.
My usage doesn't exactly map the above as I drive changes to node through a queue, from a plugin page but would work either way as far as I can tell.
from xjs.
Yes, you could do it that way. You could always create a nodejs software (or any language wherein you could create a software that could communicate through probably websockets, since it is readily available with plain javascript). Have a software that could receive data through websockets, then save the data retrieved to your disk.
This would work, but it'll be neater if our framework could do that out of the box with a simple method, which we would actually do add that up on possibly the next version, since it is already supported by our latest XSplit Broadcaster software (developer build) :)
from xjs.
In a similar vein, my current workaround is sending file writes through a little php script running on a local dev server, but obviously doing it without external dependencies would be much cleaner.
from xjs.
We're moving support for file writing into the next milestone. We're planning to have DLLs to allow this functionality but we would like to have some minimum level of security on the application-level first before we release this.
Of course we can't really stop developer creativity from finding workarounds as described above 😀 but when we release DLL support we'd like to encourage usage of that, as our current plans involve notifications for users when their plugin wants to access possibly unsafe methods.
from xjs.
This feature is now supported using the DLL class. For more information on how to use the DLL class to actually write to disk, please check out our tutorial: http://xjsframework.github.io/tutorials.html#/dll
from xjs.
Related Issues (20)
- Issues with case sensitive matching HOT 1
- Allow `duplicate` item calls to return UIDs of newly added sources
- Expose method to refresh source on show and on scene enter
- Fix documentation
- OnAsyncCallback should handle more than two parameters
- Typescript type definitions HOT 1
- Ability to copy presets
- Provide event callbacks for presets
- How to get source id for item HOT 5
- Set 'play on source show' on media items HOT 1
- Bug ActionAfterPlayback; wrong constants HOT 1
- Bug: isVideo returns false on looping videos
- getPlaybackDuration only works for active scene HOT 1
- Race condition for isVisible (and possibly more checks) HOT 1
- from php script i want to change dynamically source media HOT 3
- Apply new audio changes to XJS HOT 2
- Xsplit Broadcaster extension store
- Stream and recording start/stop event notification HOT 4
- Unable to get name of Scenes HOT 5
- Which kind of format must be? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xjs.