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
Unable to perform the direct video streaming using get_presigned_url() when the object placed inside the folder #1057
Comments
What error are you getting? Please reopen the issue by sharing code how you generated presigned url. |
I have shared the code in my first message. Here the problem is presigned URL generated by get_presigned_url() is not able to stream the video file if we stored it in a folder (object_name = "videos/video1.mp4"). I used to test/play the video URL using the following link.
Note:- Presigned URL generated by get_presigned_url() is working if I store the video file without folder specification (object_name = "video1.mp4") This is a high priority for us. Since it is not working when we store the video object within the folders... we are able to download and play it on my local computer but, not in the UI (not playable as a stream). When we store the video object within the bucket (not in any folder), then it is playing from UI. Thanks, |
If I understand correctly, you are able to download the object using presigned url, but it is not playable as a stream. Please share what error you are getting. Also you would need check whether your |
When you are uploading the object set proper content-type such that browser can auto-stream it @Udayaprasad or make sure to add |
@balamurugana I have updated my previous question. No error is displaying while we trying to play the video in the UI. It just not happening. |
@balamurugana your video will stream, because you had put within the bucket (without storing inside bucket/folder/2020.mp4). In you case the bucket name is "myvideos" and object name is 2020.mp4.
Then get the presigned_url from minIO and play it in below URL. It will not play.
|
@Udayaprasad You are completely wrong. In the URL
|
@balamurugana Got it. I am wrong here. Below is my complete code. Can you suggest how to generate the presigned_url properly so that it will be playable from the UI?
Note:- I am using docker MinIO setup. |
@Udayaprasad there is nothing special code to generate presigned url. The way you use to generate presigned url is correct. Just use |
@balamurugana Yes, it is working in |
@Udayaprasad Open an issue in |
@balamurugana Yes raised minio/minio#11263 |
@Udayaprasad Any luck playing the video?? |
Any instructions on how to play video from minio ? |
We are unable to stream the video object which is stored inside the folder, but I am able to download the video object and play it from my local computer.
if the object_name is just video1.mp4 then I am able to play the video url from the following link otherwise, if we place the object like ('videos/video1.mp4'), then it is not playing
https://cuttopoint.com/player.html
The text was updated successfully, but these errors were encountered: