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

Playing video with PFFile.url not working #1440

Closed
3 tasks done
Bragegs opened this issue Apr 9, 2016 · 8 comments
Closed
3 tasks done

Playing video with PFFile.url not working #1440

Bragegs opened this issue Apr 9, 2016 · 8 comments

Comments

@Bragegs
Copy link
Contributor

Bragegs commented Apr 9, 2016

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Environment Setup

Could not find solutions in related issues
(Local mongodb, windows server, iisnode)
I am having issues playing a video stored as PFFile(name: "video.mov", data: data!). I can download the file on mac with chrome by accessing the PFFile.url. On safari I cant. If i save the video as PFFile(data, contentType: "video/mp4") I can't access it from chrome either. The video is stored to a _User. It doesnt seem to download the url at all on ios-device.

(https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4 is used to test my IOS-code and works fine)

If i try to run the same code on my parse.com account it runs just fine and streams the video.

@Bragegs Bragegs changed the title Playing video with PFFile.url not playing Playing video with PFFile.url not working Apr 9, 2016
@hieuvo
Copy link

hieuvo commented Apr 17, 2016

I'm having same issue, AVPlayer can play files from my personal server normally, but it cannot play files stored in Parse

@thibauddavid
Copy link

Not exactly same issue for me, but may be related.

I can download / stream a PFFile without issue, but when trying to get a thumbnail at a certain time of a video, AVFoundation returns "bad server configuration".

Request :
method=GET path="pathToMyFile.mov" host=myHost request_id=requestId fwd="ipAddress" dyno=web.1 connect=0ms service=15ms status=200 bytes=161657

@Bragegs
Copy link
Contributor Author

Bragegs commented Apr 21, 2016

IOS wants partiall content responses, I made it work somehow and made a document about it on here:

notehub - Parse-Server pffile-url stream with local mongodb

If anyone want to improve, please do!

@Bragegs Bragegs closed this as completed Apr 21, 2016
@indiandragon
Copy link

@Bragegs You must submit a PR for your code. AFAIK your's is the only existing solution for streaming audio/video from parse-server hosted on heroku with mongo db backend.

@wooknight
Copy link

wooknight commented Mar 22, 2017

@Bragegs - I have verified that I have updated my Parse Server to the latest (2.3.7) but I cannot play video inside of IOS . Specifically using PFFILE from Parse IOS SDK . According to this link #2437, your code had made it into the main branch but I cannot replicate your success . Can you please suggest what I need to do on the client side?

@wooknight
Copy link

@indiandragon - I have a heroku / mlab (mongodb) setup . How did you get your setup working?

@osvaldo1963
Copy link

use the url from pffile it will never work using pffile directly

@indiandragon
Copy link

@wooknight , sorry for the delayed reply. Later ParseServer versions fixed this issue.

I'm using 2.6.3 currently.

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