82 questions
0
votes
1
answer
92
views
HTML video does not play
I'm creating a video like this, based on this CodePen:
export function createVideoFromBinary(src, mimeType = 'video/mp4') {
let $video = $(`<video autoplay loop/>`);
let $source = $(`<...
0
votes
1
answer
90
views
Load image with PreloadJS and clone the result
I'm using PreloadJS from CreateJS and am successfully getting an HTMLImageElement:
const PreloadedAssets = {
logo: null,
// ...
initializeMisc(loadQueue) {
PreloadedAssets.logo = ...
1
vote
0
answers
41
views
how to distinguish which picture put in the right position
I am using preloadjs, but I have a question that when I store the images in the queue object. How do I distinguish which image put in the right place.
here is storing the images code
queue....
0
votes
0
answers
343
views
I want to add preloader that show loader untill all assets of component is load then show complete website
I am working on my React Website.Here is the link of my websiteI used this simple set timeout its not dynamically I used Suspense lazy load but its not working as i want. Here is the link of website ...
0
votes
1
answer
108
views
Is it possible to load a midi file using createjs?
I am working on a createjs app that needs to load midi files as part of its function. I then plan to use midiplayer.js to play the file. However, I cannot find any examples of loading a midi file ...
1
vote
0
answers
344
views
Interface for Native Module in Electron-TypeScript-React App
I'm writing an app that depends on a native Node module using Electron, React and TypeScript. I have context isolation on and am using a preload script to expose the API of the native module onto the ...
0
votes
1
answer
1k
views
How to properly use preloads and window.api calls in electron?
I am having trouble using a render.js file to write "api" calls from the rendered html page's javascript.
main.js new BrowserWindow function includes:
webPreferences: {
...
2
votes
1
answer
9k
views
How to pass ipcRenderer.invoke handler answer to electron renderer process using preload.js
I'm writing a CRA + Electron app and I need to use ipcRenderer.invoke for inter-processes communication. I was able to make ipcRenderer.send and ipcRender.on work in contextIsolation mode, but no luck ...
1
vote
1
answer
2k
views
Electron - preload.js is not loaded and error is occurred on Windows 10
When I built npm start the app on Windows 10, it does not work normally which worked fine on macOS.
package.json
{
"name": "SimpleTimer",
"version": "1.0.0",...
0
votes
2
answers
150
views
Why do progress events stop firing when I add 'false' to createjs.LoadQueue()?
OK, the docs are messy at best. I have huge issues fading in and out preloaded assets if I do not add 'false' to the instance of PreloadJS. But when I add it I completely lose the progress event ... ...
1
vote
0
answers
3k
views
Preload json files generated by bodymovin/lottie loaded twice by PreloadJS
I am trying to create a preload for my site via the PreloadJS library.
On the site I created a dozen items via bodymovin / lottie.
Bodymovin create json files with all the information of the graphic ...
0
votes
2
answers
571
views
PreloadJS loaded image, but I cannot insert it to DOM
I'm trying to preload one image using PreloadJS, then insert it to DOM a twice. But I can insert only one image.
var queue = new createjs.LoadQueue();
queue.addEventListener('complete', ...
0
votes
1
answer
572
views
Cannot read property "getContext" of undefined - electron
I'm trying to generate a sprite-sheet dynamically in easeljs after triggering a event from the ipcMain to a window.
The problem i'm having is that preloadjs/easeljs trigger this error in the console:
...
0
votes
1
answer
2k
views
preloadjs + howler audio doesn't play
I was trying to make my first website.
I'm working on local, so if you need an online website for debug it, I can upload it.
I want to create a preload section on the first visit where show a preload ...
0
votes
1
answer
921
views
preloadjs for font preloading in canvas
I use preloadjs for font loading (the font is local to my computer) in a canvas area but the font is displayed only after a page refresh.
The text is in my_text and the font is the "digital-7.ttf" in ...