Comments (15)
From @jancborchardt on June 28, 2015 0:55
For the play button overlap, you can simply use a div with .icon-view-play with some darker half-transparent background. :) I will do detail styling.
from gallery.
From @jancborchardt on November 5, 2015 16:11
cc @karlitschek @DeepDiver1975 FYI
from gallery.
From @karlitschek on November 5, 2015 19:25
nice
from gallery.
From @jancborchardt on November 9, 2015 17:33
cc @VicDeo of our current videoviewer app on this, as well as @Instagit of this awesome new video player app: https://github.com/Instagit/videojs-sublime
from gallery.
The problems rarely come from the players, but from the fact that we usually have no idea which files will play or leave users hanging...
So in terms of usability, phase 1 is crucial, but requires external dependencies like mplayer.
from gallery.
From @jancborchardt on November 11, 2015 16:21
@oparoz well the player of @Instagit has a simple message that the file type is not supported. I’d say that’s fine for the first pass. Because the video is shown and you don’t wonder where it is, and you are informed why it can not be played.
from gallery.
I don't think it's fine in the Files app as the user will have a hit and miss experience. Videos with thumbnails might not play. That's very confusing. Videos without thumbnails (probably rare) might never be clicked on.
It's worse in Gallery as we would be showing thumbnails of unplayable media, leading to frustration.
I've been there. Installed video players, uploaded a mixed collection and couldn't play most of it. The players only support very specific formats.
from gallery.
From @jancborchardt on November 11, 2015 17:9
Ok – but the situation would not be any different compared to now. So changing the player to a better looking and working one (on mobile as well) would be a great improvement already.
The mplayer stuff and extra dependencies is a further enhancement, but a slightly different tangent.
from gallery.
Yes, but that has nothing to do with Gallery. People install an app and get a hit and miss experience. After that, they may decide to remove the app.
If Gallery claims to support videos and only offers patchy support, we're going to get lots of requests from people.
from gallery.
From @devurandom on November 11, 2015 20:56
If said player (@jancborchardt's recommendation) can display a message, won't ownCloud/Gallery also be able to determine whether the file can be played or not? And then display the thumbnail/preview greyed out, with some explanatory text in front of it?
It has to show all possible thumbnails anyway, because it's IMO supposed to show me all files of a certain type (i.e. videos and pictures), not just the ones it can play (otherwise I'd wonder why Gallery completely hides a certain file - without ever knowing the reason). So the server generates the list as usual, and Gallery just desaturises the preview/thumbnail using some JS script on the client, and maybe adds a text somewhere (for large previews that can well be the preview image itself).
from gallery.
From @Instagit on November 12, 2015 8:26
The best you can do without starting the video is try to guess if the file can be played with canPlayType(): http://www.leanbackplayer.com/test/h5mt.html
With only the file extension, there's no way to say for sure if the file can be played, because that depends on the codecs used.
With external tools that detect the codecs like mplayer mentioned here or FFmpeg, the guess could come close to 100% precision, but I think that would be a lot of work to implement and could also slow down loading times when there are many videos in the gallery.
from gallery.
With only the file extension, there's no way to say for sure if the file can be played, because that depends on the codecs used.
Exactly and that's the source of a lot of frustration and misunderstanding because people will say: "I have this mkv or MP4 and the player gives me nothing/an empty video/no audio/etc."
but I think that would be a lot of work to implement
I don't think so, but it does require to use unsafe PHP methods.
and could also slow down loading times when there are many videos in the gallery.
Not if we store the format the first time we encounter a new video. It's similar to the current effort to support EXIF meta data extracted from images.
If said player can display a message, won't ownCloud/Gallery also be able to determine whether the file can be played or not?
Yes, but only after clicking on the video and as mentioned earlier, you may get a thumbnail, but the player won't show you the video. Then it's possible to grey-out the video, but the app will forget about it and you'll click again the next time you launch the app.
It has to show all possible thumbnails anyway, because it's IMO supposed to show me all files of a certain type (i.e. videos and pictures), not just the ones it can play (otherwise I'd wonder why Gallery completely hides a certain file - without ever knowing the reason)
I agree. Gallery displays broken JPEGs so that the user can download them. We could do the same with videos, showing the video icon instead of a thumbnail and letting the user try his luck.
If we ever implement a way to detect the codec, then we can enable thumbnail previews.
from gallery.
@Instagit - Does you player detect the VLC plugin and use it?
from gallery.
Found it:
https://github.com/Afterster/videojs-vlc
from gallery.
From @devurandom on November 13, 2015 15:55
If said player can display a message, won't ownCloud/Gallery also be able to determine whether the file can be played or not?
Yes, but only after clicking on the video and as mentioned earlier, you may get a thumbnail, but the player won't show you the video. Then it's possible to grey-out the video, but the app will forget about it and you'll click again the next time you launch the app.
You could store the result of that examination, as long as the player is able to give you a list of codecs used in the file, or similar.
I assume one should not generally store "playable: yes/no" in the database anyway, as each browser might support a different list of codecs.
from gallery.
Related Issues (20)
- Gallery should use the new viewer HOT 4
- Gallery appears not to be working with ftp as share enabled
- Context sensitive download of shared gallery subfolders
- A "This day in" feature similar to amazon prime photos. HOT 2
- Add features for photo organization HOT 1
- [18] Cannot set property DOMPurify of #<Window> which has only a getter
- gallery misalignment of folder previews HOT 6
- Choose to Display pictures between various dates
- comment visibility
- Gallary/Files, switching but keeping scope
- Entry folder
- Errors in Log while preview generation
- Problem while reading or parsing the configuration file. Config location:
- Allow users to set preview quality
- Cache Directory Tagging
- Exception in Log when link to share is expired HOT 1
- Shared folder with photos → no gallery function, just download? HOT 1
- 💀 Gallery was replaced by 📸 Photos HOT 3
- Deletion of an image removes a directory tree
- NC 18: Make gallery compatible for until photos provides similar functionality HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gallery.