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

feat(resources): video thumbnail preview #345

Open
chrismclarke opened this issue Dec 4, 2024 · 0 comments
Open

feat(resources): video thumbnail preview #345

chrismclarke opened this issue Dec 4, 2024 · 0 comments

Comments

@chrismclarke
Copy link
Collaborator

chrismclarke commented Dec 4, 2024

Is your feature request related to a problem? Please describe.
In both farmer and extension app, whenever a video is shown it uses a blank placeholder for a thumbnail. It would be more informative to show a thumbnail for the video instead. The current player supports the option of providing a custom thumbnail image, however it would be good to auto-generate when not provided

Describe the solution you'd like
This may actually be a little more complicated than first thought, as we use

It might first be worth seeing if on web using a standard <video> tag might have more support, and updating the component to render differently for web/native
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

For native, we use the plugin https://github.com/harmonwood/capacitor-video-player
This has limited documentation and it's not clear how a thumbnail could be shown, although a workaround might be to show the web player, and when clicked launch the native player instead

Describe alternatives you've considered
There are various native android methods to generate video thumbnails, however building a custom plugin would be tricky. E.g.
https://developer.android.com/social-and-messaging/guides/media-thumbnails

If the web implementation doesn't naturally display a thumbnail it might be possible to automatically move the video to a certain time (e.g. 1s) and toggle play/pause to see if that renders an image

Additional context
Video player code in libs\shared\src\features\video-player\video-player.component.ts

Videos can either be found within the farmer app, or combined in the extension resources, e.g.
https://picsa.app/resources/collection/picsa_videos/picsa_videos_farmer

Example list of videos without thumbnails
picsa app_resources_collection_picsa_videos_picsa_videos_farmer(PICSA-Tablet)

Example - once a video has been played a still image appears. Ideally all should show still images without play
picsa app_resources_collection_picsa_videos_picsa_videos_farmer(PICSA-Tablet) (1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Next Priority
Development

No branches or pull requests

1 participant