F
Filament2y ago
core

video player

anyone manage to install this package?: https://github.com/aymanalhattami/filament-audio-video-player or have a better solution?
GitHub
GitHub - aymanalhattami/filament-audio-video-player
Contribute to aymanalhattami/filament-audio-video-player development by creating an account on GitHub.
11 Replies
toeknee
toeknee2y ago
That is for filament v2, so just migrate it to v3 if you want to use it?
core
coreOP2y ago
i can't even composer require it and how does one migrate it?
awcodes
awcodes2y ago
you'll need to submit a PR to the plugin. it's still using the PluginServiceProvider that is no longer in Filament as of v3.
core
coreOP2y ago
Any other solutions for a media player in side a resource form? I would like to call videos from S3 , show a preview and let users attach them to a model
krekas
krekas2y ago
html video tag?🤷‍♂️
awcodes
awcodes2y ago
should be fairly easy to do with a custom form field or View form component.
core
coreOP2y ago
hi, I tried adding a <video> tag to the select,I played with the following: https://v2.filamentphp.com/tricks/render-html-in-select-options , here is my blade file:https://gist.github.com/dflow/e5ae859707051efa72eaba9796bec977, says: Your browser does not support the video tag, what am I missing? config?
Filament
Render HTML in select options by Matthew Ost - Tricks - Filament
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
krekas
krekas2y ago
You tried to add video player in select input? That's bad in so many ways. You should rethink in this case
awcodes
awcodes2y ago
Think i'm missing what you're trying to do. but yea, the video itself should not be a direct part of any html form component.
core
coreOP2y ago
What’s so bad about it, I plan on preparing a media library and let content managers choose one from a 5-10 short videos list to add to a process repeater component. If you can add the img tag why not a video tag?
krekas
krekas2y ago
Just think how it even behave

Did you find this page helpful?