Disable non-image media support for now

This commit is contained in:
miruka 2019-10-27 12:10:07 -04:00
parent 07e6d74b91
commit bf4517b146

View File

@ -56,22 +56,22 @@ HLoader {
var file = "EventImage.qml"
var props = { source: previewUrl, fullSource: mediaUrl }
} else if (type === EventDelegate.Media.File) {
var file = "EventFile.qml"
var props = {
thumbnailUrl: previewUrl,
fileUrl: mediaUrl,
fileTitle: info.media_title,
fileSize: info.media_size,
}
// } else if (type === EventDelegate.Media.File) {
// var file = "EventFile.qml"
// var props = {
// thumbnailUrl: previewUrl,
// fileUrl: mediaUrl,
// fileTitle: info.media_title,
// fileSize: info.media_size,
// }
} else if (type === EventDelegate.Media.Video) {
var file = "EventVideo.qml"
var props = { source: mediaUrl }
// } else if (type === EventDelegate.Media.Video) {
// var file = "EventVideo.qml"
// var props = { source: mediaUrl }
} else if (type === EventDelegate.Media.Audio) {
var file = "EventAudio.qml"
var props = { source: mediaUrl }
// } else if (type === EventDelegate.Media.Audio) {
// var file = "EventAudio.qml"
// var props = { source: mediaUrl }
} else { return }