Add encrypted file download
This commit is contained in:
parent
6c2ec3fe67
commit
b8f6e4ce64
9 changed files with 209 additions and 171 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue