Skip to content
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

Can't stream video from pffile - iOS #326

Closed
ghost opened this issue Feb 9, 2016 · 7 comments
Closed

Can't stream video from pffile - iOS #326

ghost opened this issue Feb 9, 2016 · 7 comments

Comments

@ghost
Copy link

ghost commented Feb 9, 2016

I can save pffile's completely fine to heroku using mongoLab. I make sure to set the content MIME type as "video/mp4".

However, when I retreive the PFFile's url, I can't stream the video from iOS using AVPlayerViewControlle.

The AVPlayerViewController just shows a crossed out play button!?

I consulted the mongoLab help team and they said it would be something to do with the parse server or possibly heroku!?

If I use the EXACT same code but swap from my heroku server running parse server to the NORMAL parse server ( the one that is shutting down ) I can stream video perfectly fine on iOS.

Can someone else please try streaming a video from a heroku parse server using mongoLab / mongoDB to store data?

Thanks.

@rosarioconti
Copy link

Once you change the server url, the file get saved on that server (heroku in this case).
but it tries to download from the original files.parse.com server location where the file is not there.
At least from what I tried so far debugging it.
I'm trying to fix myself but I guess someone should have a fix soon for this.

This is the url still there
https://files.parsetfss.com/

@gateway
Copy link

gateway commented Feb 10, 2016

btw prob a good idea to push video files in the future to s3 bucket instead of storing these files in a database. You can enable s3 no as a file adaptor.

@rosarioconti
Copy link

Try this :
#308

@gfosco
Copy link
Contributor

gfosco commented Feb 26, 2016

There's been a lot of changes to the files functionality. Can you please re-open and provide more information if you're still experiencing this issue? Thanks.

@gfosco gfosco closed this as completed Feb 26, 2016
@indiandragon
Copy link

[Solved] The solution is given by @Bragegs here - #1440 (comment) . In short, parse-server doesn't seem to be supporting streaming of audio/video and @Bragegs code enables it. I hope it get's PR and parse team looks into it.

@manishsangwan
Copy link

Does not work for S3Adapter.

@flovilmart flovilmart reopened this Dec 5, 2016
@flovilmart
Copy link
Contributor

Should work with S3 if you configure direct access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants