Skip to content

Parse server does not stream .mp4 PFFile to AVPlayer #2127

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

Closed
dpaid opened this issue Jun 22, 2016 · 3 comments
Closed

Parse server does not stream .mp4 PFFile to AVPlayer #2127

dpaid opened this issue Jun 22, 2016 · 3 comments

Comments

@dpaid
Copy link

dpaid commented Jun 22, 2016

Issue Description

Parse server hosted on AWS ElasticBeanStalk(deployed with AWS button) cannot stream .mp4 PFFile saved in mongodb on AWS EC2 (EBS) to iOS AVPlayer and Safari browser.
Video plays on Chrome browser but does not play on my iOS app or Safari browser.
Videos hosted on parse service play with no problem.

Error I get on iOS:
Error Domain=AVFoundationErrorDomain Code=-11850 "Operation Stopped" UserInfo={NSUnderlyingError=0x13fb86740 {Error Domain=NSOSStatusErrorDomain Code=-12939 "(null)"}, NSLocalizedFailureReason=The server is not correctly configured., NSLocalizedDescription=Operation Stopped}

Link to video:
http://parseserver-fmp42-env.us-east-1.elasticbeanstalk.com/parse/files/1S22JRBPse4F5vXbpnvP666mbBAqruD6VxZrbRfi/11990ed054321d7aefba75f734896651_2016-06-20%2018-03-57%200000_LWyt213QSG.mp4

Environment Setup

  • Server
    • parse-server version: 2.2.13
    • Localhost or remote server?: AWS
  • Database
    • MongoDB version: 3.2.6
    • Storage engine: wiredTiger
    • Localhost or remote server?: AWS
@dpaid
Copy link
Author

dpaid commented Jul 3, 2016

Using the S3 file adapter fixed it!

@dpaid dpaid closed this as completed Jul 3, 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.

@otymartin
Copy link

@dpaid is video streaming fully working for you?
If so can you share some code snippets?

Thanks

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

3 participants