![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Sometimes it's useful to use Vidar in Node. This package is a wrapper of Vidar that serves that purpose.
vidarNode(() => {
// You can access inputs as html elements and pass them to Vidar as usual.
const image = document.getElementById('input1') // <img> element
...
movie.exportRaw()
.then(window.done)
// Tell Vidar Node what inputs to load with { id: path }
}, { input1: 'path/to/image.png' }, 'output.mp4')
vidarNode(vidarFunction, inputSources, resultCallbackOrPath[, page])
vidarFunction
(string) - Function to run in the puppeteer page. vd and done are exposed as globals (accessed as properties of window)
window.done(exportedBytes)
- Process the exported movie (resolved value of Movie#exportRaw), by either writing to resultCallbackOrPath if it's a string or executing it if it's a functioninputSources
(Object<string, <string|Object>>) - the input assets, mapped from id to path or raw data. If the input is provided as raw data, it should be an object with the following properties:
resultCallbackOrPath
(function|string) - Determines what to do when window.done is alled in vidarFunction. If it's a string, it is treated as a path and the movie is written to it. If it's a function, it is called with one argument exportedBytes.page
(Page) - the puppeteer Page to use. Defaults to a page created by a new browser.Runs vidarFunction
in a puppeteer page. Each input source is converted to an html element (<img>
, <audio>
or <video>
). The output is either written to the path or the callback is executed, depending on the type of resultCallbackOrPath
.
Added:
vidarNode
- the vidar wrapperMovie#recordRaw
- a convenience method for recording in the vidar wrapperPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
A wrapper to run Vidar in Node
The npm package vidar-node receives a total of 0 weekly downloads. As such, vidar-node popularity was classified as not popular.
We found that vidar-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.