Getting all videos from folder
Hi
I need something similar:
We need to build a microsite with only 3 pages (upload/details capture, thank you, and video gallery).
The scope of the microsite is to have users upload videos on our site with their name and a few details (name, email, age, phone, city, accept tc' and c's), then display all users' videos on a "gallery" page listing all the videos from a folder with their name below each.
The form part, we already have working, but there is no way that I can see in the documentation that ties our form to an upload. So there is no way we can associate the upload with the user's details on form submission.
What we have:
- Video files able to be uploaded to a specified folder on the CDN, via drag and drop and button click.
- A form that captures users details.
- Plenty sleepless nights going over documentation that didn't give use case demos to expand on.
What we are struggling with:
- Making the upload, part of the form submission so that a user can't upload without data capture, nor submit data without uploading a video.
- Attaching the users name field to the video title during upload, for later display on a listing page.
- Displaying all videos from a folder on a page with thumbnails that link, either directly to the video, or open a player.
- Ensuring that all videos are converted to mp4 for playback on desktop and mobile.
Any help is greatly appreciated!
-
We are an end-to-end image and video management solution. We can assist you with your queries regarding website building, however, we are not a dev workshop. You can find sample projects in various frameworks on Cloudinary github: https://github.com/cloudinary. These projects are intended to show Cloudinary functionalities and usage.
Answers below:
- Making the upload, part of the form submission so that a user can't upload without data capture, nor submit data without uploading a video.
I am assumming you are using some sort of javascript/jquery on client-side. You can do form validations client-side by using jquery. Here is an example: http://form.guide/jquery/validation-using-jquery-examples.html
- Attaching the users name field to the video title during upload, for later display on a listing page.
You can specify the public_id on upload and that will be the name of the video. Are you using direct upload or upload widget to upload videos to Cloudinary?
- Displaying all videos from a folder on a page with thumbnails that link, either directly to the video, or open a player.
You can either save the links to the videos in a database or you can tag videos from the same user with a particular tag and then use our API to list resources by tags: https://cloudinary.com/documentation/admin_api#list_resources_by_tag
- Ensuring that all videos are converted to mp4 for playback on desktop and mobile.
You can use incoming transformation to convert videos to mp4. You can specify that in your upload preset and all videos will be automatically converted to mp4 on upload.: https://cloudinary.com/documentation/upload_images#incoming_transformations
Hope this helps. Please let me know if you have any questions.
Thanks,
Aditi
0 -
Hi Aditi:
I need a consulting from you. How can I reach you?. My developer can't find a solution for my embed videos using cloudinary.
You can reach me at garrinchafz@hotmail.com
Regards
Oswaldo
0 -
Hi Oswaldo,
It will be best to raise a support ticket here : https://support.cloudinary.com/hc/en-us/requests/new with the steps to reproduce, code, screenshots etc and other relevant stuff and we will be able to assist you quickly.
Regards,
Aditi0
Post is closed for comments.
Comments
3 comments