Giter Site home page Giter Site logo

Writing to the disk about xjs HOT 6 CLOSED

paul-lrr avatar paul-lrr commented on August 11, 2024
Writing to the disk

from xjs.

Comments (6)

 avatar commented on August 11, 2024

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.

dabruhce avatar dabruhce commented on August 11, 2024

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.

 avatar commented on August 11, 2024

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.

paul-lrr avatar paul-lrr commented on August 11, 2024

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.

mikeybanez avatar mikeybanez commented on August 11, 2024

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.

 avatar commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.