Reactivate EventFile for video and audio events
Temporary solution until the media player is ready
This commit is contained in:
parent
45ff9bba99
commit
ce23d2c992
1
TODO.md
1
TODO.md
|
@ -1,6 +1,7 @@
|
|||
# TODO
|
||||
|
||||
- strip file:// from copy path
|
||||
- some way to show name and date on EventFile
|
||||
- sentinel func to report path if already cached without having to click
|
||||
- verify eventfile height
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ HLoader {
|
|||
if (type === EventDelegate.Media.Image) {
|
||||
var file = "EventImage.qml"
|
||||
|
||||
} else if (type === EventDelegate.Media.File) {
|
||||
} else if (type !== EventDelegate.Media.Page) {
|
||||
var file = "EventFile.qml"
|
||||
|
||||
} else { return }
|
||||
|
@ -71,6 +71,11 @@ HLoader {
|
|||
|
||||
|
||||
function download(callback) {
|
||||
if (! loader.mediaUrl.startsWith("mxc://")) {
|
||||
downloadedPath = loader.mediaUrl
|
||||
callback(loader.mediaUrl)
|
||||
}
|
||||
|
||||
if (! downloadedPath) print("Downloading " + loader.mediaUrl + " ...")
|
||||
|
||||
const args = [loader.mediaUrl, loader.singleMediaInfo.media_crypt_dict]
|
||||
|
|
Loading…
Reference in New Issue
Block a user