-
Notifications
You must be signed in to change notification settings - Fork 385
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
[Feature] View mode: open Image,Video,Audio files in Markor #1806
Conversation
@@ -134,12 +138,16 @@ public void onCreate(final Bundle savedInstanceState) { | |||
} | |||
} | |||
|
|||
public boolean isViewBinary(){ | |||
return !(getActivity() instanceof MainActivity); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this will move around and have a proper detection, it's just for development currently. And it will only be allowed to show the view mode for such files. Editor text stays empty, as well read/write/saveText disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to encryption hook (that reads/writes files differently than normal text) there is another one now that just returns empty string, or returns true when wanting to write. (=dummy). No relevant other change at fragment or someting thus.
1c8d67c
to
4af7164
Compare
@harshad1 screenrecord-2022-08-21_15.07.35.webmI discovered this handy class https://developer.android.com/reference/android/media/MediaMetadataRetriever that can give many different kinds of metadata, really well working. It's also capable of extracting music cover art, or video preview/frame with ~2 lines of code. What I want to do in future is also to add the outputs of the extraction utility I wrote.... to the existing file-info-dialog. So meaning users get more insights straight from the Markor filebrowser's toolbar info button 😄 . What do you think? |
9296907
to
2361d5d
Compare
108059d
to
cf80f5c
Compare
…ported formats in view mode (allow open jpg/mp4/mp3 etc directly in Markor), by @gsantner, closes #1200 fullscreen overlay (video fullscreen playback) audio, read generic multimedia file metadata like artist,title view mode button style material-ish Generic extractFileMetadata --> shareutil move webchromeclient to net package optimize/reformat code
66e6338
to
bf17d51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked through all files at merge overview looks good
View mode: Feature open Image,Video,Audio files and other WebView supported formats in view mode (allow open jpg/mp4/mp3 etc directly in Markor), by @gsantner, closes #1200
state 28. august:

state of earliest version: video, image, audio .. and also you can zoom in with zoom gesture 😄 . And yes everything shown is in a webview using html5 video/img tags + file://reference.