-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Unable to stream Video using PFFile #3690
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
Comments
Check #1440, may help your situation. |
@ZacharyKhan @natanrolnik |
I was able to get this to work a while ago using amazon S3 to store the video files. Basically, store the video as a PFFile and make sure to set the mime type for MP4. Then, when retrieving a video file, get the URL string from the pffile and load the video into your player. |
@ZacharyKhan |
@wooknight no problem. Posting your code/errors also would help :) |
@ZacharyKhan . Thank you again . This is the code that uploads the file
This is a file that was uploaded to S3 https://s3-us-west-1.amazonaws.com/speedrate/37c02e3efb521608326fdb6577c92c83_file.mp4 I am still not sure what I am missing here. Thank you for your help |
What’s the content type header on the file on S3? |
Hi Flo,
I believe that the header is set to the correct type from what I read in
the resolution of the previous issues
[image: Inline image 1]
Regards
Ramesh Naidu
…On Sun, Jul 16, 2017 at 7:43 AM, Florent Vilmart ***@***.***> wrote:
What’s the content type header on the file on S3?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3690 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7bsal_UYxrWZAPlikbDX5-kriGVLSXks5sOiGcgaJpZM4MzwY->
.
|
Image doesn’t seem uploaded. |
Thank you for taking the time to help with this This is the file on S3 https://s3-us-west-1.amazonaws.com/speedrate/4ab48fc8a45f1eee32b477b4ad4152ba_file.mp4 |
I’m able to open the file in safari (iOS 11) so it should work right from the URL as AVURLAsset in AVPlayer |
Or MPMoviePlayerController given that the URL is calid |
Thanks Flo . I am running this on Heroku so the url that I get back is as follows and while that URL shows up fine on other browsers , it does not show up in Safari . I tried the equivalent S3 url Do I need to replace the URL inside the IOS code ? before playing the video ? Thanks for your help |
You should probably configure parseServer and the S3 adapter for direct access so all URL's will be pointing to S3 directly instead of parse-server. |
http://stackoverflow.com/questions/43360204/unable-to-view-videos-in-ios-app-uploaded-to-heroku-s3-via-parse-server
I would be grateful for any pointers here
The text was updated successfully, but these errors were encountered: