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
|
# TODO
|
||||||
|
|
||||||
- strip file:// from copy path
|
- 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
|
- sentinel func to report path if already cached without having to click
|
||||||
- verify eventfile height
|
- verify eventfile height
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ HLoader {
|
||||||
if (type === EventDelegate.Media.Image) {
|
if (type === EventDelegate.Media.Image) {
|
||||||
var file = "EventImage.qml"
|
var file = "EventImage.qml"
|
||||||
|
|
||||||
} else if (type === EventDelegate.Media.File) {
|
} else if (type !== EventDelegate.Media.Page) {
|
||||||
var file = "EventFile.qml"
|
var file = "EventFile.qml"
|
||||||
|
|
||||||
} else { return }
|
} else { return }
|
||||||
|
@ -71,6 +71,11 @@ HLoader {
|
||||||
|
|
||||||
|
|
||||||
function download(callback) {
|
function download(callback) {
|
||||||
|
if (! loader.mediaUrl.startsWith("mxc://")) {
|
||||||
|
downloadedPath = loader.mediaUrl
|
||||||
|
callback(loader.mediaUrl)
|
||||||
|
}
|
||||||
|
|
||||||
if (! downloadedPath) print("Downloading " + loader.mediaUrl + " ...")
|
if (! downloadedPath) print("Downloading " + loader.mediaUrl + " ...")
|
||||||
|
|
||||||
const args = [loader.mediaUrl, loader.singleMediaInfo.media_crypt_dict]
|
const args = [loader.mediaUrl, loader.singleMediaInfo.media_crypt_dict]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user