Skip to content

Don't work drag and drop (SA_DragDropEMU) #130

@Bekbo01

Description

@Bekbo01
  1. I cloned repository to my server
  2. add some change ( I will have folder which contains video files, and I when call SA_DragDropEMU to load from this folder, it can load it)

""
function handleFileFromInput() {
const videoFolderPath = ${window.location.protocol}//${window.location.hostname}:${window.location.port};
var inputText = document.getElementById('fileInput2').value.trim();

if (!inputText) {
    alert("Пожалуйста, введите текст.");
    return;
}
const { queue, displayQueue } = processInputText5(inputText);
let currentIndex = 0;

function next() {
    if (currentIndex >= queue.length) {
        document.getElementById('current-word-display').innerText = "!";
        return;
    }

    const letter = queue[currentIndex];
    const label = displayQueue[currentIndex];
    const fullPath = videoFolderPath + letter;

    document.getElementById('current-word-display').innerText = `${label}`;

    const tempVideo = document.createElement('video');
    tempVideo.src = fullPath;

    tempVideo.addEventListener('loadedmetadata', function () {
        const duration = tempVideo.duration;
        SA_DragDropEMU(fullPath);

        setTimeout(() => {
            currentIndex++;
            next();
        }, duration * 1000);
    });
}

next();

}
"""

=========
and it's running in docker container via nginx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions