ank 1 Posted October 19, 2017 Hello I am looking to use html5 video, Is there a way to upload video files (mp4) in processwire ? Thanks Ank Quote Share this post Link to post Share on other sites
maxf5 132 Posted October 19, 2017 Create a new field: type: file allowed extensions: mp4 webm ogg 1 Quote Share this post Link to post Share on other sites
adrian 11,187 Posted October 19, 2017 Or if you want a solution for generating poster images and providing an easy play option, check out: https://github.com/adrianbj/FieldtypeVideo 2 Quote Share this post Link to post Share on other sites
ank 1 Posted October 19, 2017 @maxf5 and @adrian thank you FieldtypeVideo seems the easiest way, but i want to "autoplay" and "loop" the movie, so i think the "file" field option is the most suitable. Ank Quote Share this post Link to post Share on other sites
adrian 11,187 Posted October 19, 2017 1 minute ago, ank said: @maxf5 and @adrian thank you FieldtypeVideo seems the easiest way, but i want to "autoplay" and "loop" the movie, so i think the "file" field option is the most suitable. Ank The video fieldtype can do autoplay and loop - take a look at the Mediaelement API (https://github.com/mediaelement/mediaelement/blob/master/docs/api.md). You can also completely replace the video rendering code in the settings of the module with another player if you'd prefer. Not to say that a normal files field isn't fine, the Video fieldtype just makes it easier to manage videos in the backed because it creates images, shows the length of videos, and a few other things. Really depends on your needs as to what will be best. 2 Quote Share this post Link to post Share on other sites
ank 1 Posted October 19, 2017 2 minutes ago, adrian said: The video fieldtype can do autoplay and loop - take a look at the Mediaelement API (https://github.com/mediaelement/mediaelement/blob/master/docs/api.md). You can also completely replace the video rendering code in the settings of the module with another player if you'd prefer. Not to say that a normal files field isn't fine, the Video fieldtype just makes it easier to manage videos in the backed because it creates images, shows the length of videos, and a few other things. Really depends on your needs as to what will be best. I check this out, seems very suitable ! Thanks Quote Share this post Link to post Share on other sites
SamC 721 Posted October 20, 2017 20 hours ago, adrian said: Or if you want a solution for generating poster images and providing an easy play option, check out: https://github.com/adrianbj/FieldtypeVideo Nice! Will bookmark this one for a later date Quote Share this post Link to post Share on other sites