ank Posted October 19, 2017 Share 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 Link to comment Share on other sites More sharing options...
maxf5 Posted October 19, 2017 Share Posted October 19, 2017 Create a new field: type: file allowed extensions: mp4 webm ogg 1 Link to comment Share on other sites More sharing options...
adrian Posted October 19, 2017 Share 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 Link to comment Share on other sites More sharing options...
ank Posted October 19, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
adrian Posted October 19, 2017 Share 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 Link to comment Share on other sites More sharing options...
ank Posted October 19, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
SamC Posted October 20, 2017 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now