Add encrypted file download

This commit is contained in:
Nicolas Werner 2019-12-03 02:26:41 +01:00
parent 6c2ec3fe67
commit b8f6e4ce64
9 changed files with 209 additions and 171 deletions

View file

@ -97,7 +97,7 @@ Rectangle {
anchors.fill: parent
onClicked: {
switch (button.state) {
case "": timelineManager.cacheMedia(model.url, model.mimetype); break;
case "": timelineManager.timeline.cacheMedia(model.id); break;
case "stopped":
media.play(); console.log("play");
button.state = "playing"
@ -118,7 +118,7 @@ Rectangle {
}
Connections {
target: timelineManager
target: timelineManager.timeline
onMediaCached: {
if (mxcUrl == model.url) {
media.source = "file://" + cacheUrl