Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open .webm video files with internal player #4553

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import com.nextcloud.talk.utils.Mimetype.TEXT_PLAIN
import com.nextcloud.talk.utils.Mimetype.VIDEO_MP4
import com.nextcloud.talk.utils.Mimetype.VIDEO_OGG
import com.nextcloud.talk.utils.Mimetype.VIDEO_QUICKTIME
import com.nextcloud.talk.utils.Mimetype.VIDEO_WEBM
import com.nextcloud.talk.utils.MimetypeUtils.isAudioOnly
import com.nextcloud.talk.utils.MimetypeUtils.isGif
import com.nextcloud.talk.utils.MimetypeUtils.isMarkdown
Expand Down Expand Up @@ -148,7 +149,8 @@ class FileViewerUtils(private val context: Context, private val user: User) {
AUDIO_OGG,
VIDEO_MP4,
VIDEO_QUICKTIME,
VIDEO_OGG
VIDEO_OGG,
VIDEO_WEBM
-> openMediaView(filename, mimetype)
IMAGE_PNG,
IMAGE_JPEG,
Expand Down Expand Up @@ -252,6 +254,7 @@ class FileViewerUtils(private val context: Context, private val user: User) {
VIDEO_MP4,
VIDEO_QUICKTIME,
VIDEO_OGG,
VIDEO_WEBM,
TEXT_MARKDOWN,
TEXT_PLAIN -> true
else -> false
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/nextcloud/talk/utils/Mimetype.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ object Mimetype {
const val VIDEO_MP4 = "video/mp4"
const val VIDEO_QUICKTIME = "video/quicktime"
const val VIDEO_OGG = "video/ogg"
const val VIDEO_WEBM = "video/webm"

const val TEXT_MARKDOWN = "text/markdown"
const val TEXT_PLAIN = "text/plain"
Expand Down
Loading