Commit 46247360 authored by jan.koester's avatar jan.koester
Browse files

deb

parent df76fb36
Loading
Loading
Loading
Loading
+8 −0
Changes for debian/changelog: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
blogi (20260506+1) unstable; urgency=medium

  * Editor: fix survey and video preview prefix not included in URLs
  * Editor: set EditPlugin prefix from server URL on connect/disconnect
  * Editor: video poster preview uses full server URL instead of origin only

 -- Jan Koester <jan.koester@tuxist.de>  Wed, 06 May 2026 12:00:00 +0200

blogi (20260502+2) unstable; urgency=medium

  * Video widget: add poster/thumbnail support (Vorschaubild aus Video)
+7 −0
Changes for editor/localapi.cpp: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -781,6 +781,12 @@ void LocalApi::publishToServer() {
void LocalApi::connectToServer(const QString &url, const QString &user, const QString &password) {
    _pub->setServerUrl(url);

    /* Extract URL path as widget prefix so survey/video URLs are correct */
    QUrl qurl(url);
    QString path = qurl.path();
    if (path.endsWith('/')) path.chop(1);
    EditPlugin::setPrefix(path.toStdString());

    if (user.isEmpty()) {
        /* No credentials — verify server is reachable */
        emit statusMessage("Testing connection...");
@@ -812,6 +818,7 @@ void LocalApi::disconnectServer() {
    _pub->abort();
    _pub->setServerUrl("");
    _pub->setAuthToken("");
    EditPlugin::setPrefix("");
    emit connectionStatusChanged(false, "Disconnected");
    emit statusMessage("Disconnected from server");
}
+2 −6
Changes for editor/qml/PropertyPanel.qml: 2 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -590,10 +590,8 @@ ColumnLayout {
                        onClicked: {
                            posterPreview.source = ""
                            var surl = localApi.serverUrl()
                            var origin = surl
                            try { var u = new URL(surl); origin = u.origin } catch(e) {}
                            var t = posterTimeSpin.realValue
                            posterPreview.source = "image://auth/" + origin + "/media/" + videoMediaId + "/preview?fmt=webp&w=320&t=" + t
                            posterPreview.source = "image://auth/" + surl + "/media/" + videoMediaId + "/preview?fmt=webp&w=320&t=" + t
                        }
                    }

@@ -619,9 +617,7 @@ ColumnLayout {
                    source: {
                        if (videoMediaId === "" || currentTime < 0) return ""
                        var surl = localApi.serverUrl()
                        var origin = surl
                        try { var u = new URL(surl); origin = u.origin } catch(e) {}
                        return "image://auth/" + origin + "/media/" + videoMediaId + "/preview?fmt=webp&w=320&t=" + currentTime
                        return "image://auth/" + surl + "/media/" + videoMediaId + "/preview?fmt=webp&w=320&t=" + currentTime
                    }
                }
            }