Parse-server: Playing video with PFFile.url not working

Created on 9 Apr 2016  路  8Comments  路  Source: parse-community/parse-server

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.

Most helpful comment

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!

All 8 comments

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

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

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 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.

@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 https://github.com/ParsePlatform/parse-server/pull/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?

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

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

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

I'm using 2.6.3 currently.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

darkprgrmmr picture darkprgrmmr  路  4Comments

omyen picture omyen  路  3Comments

ViolentCrumble picture ViolentCrumble  路  3Comments

dpaid picture dpaid  路  3Comments

kilabyte picture kilabyte  路  4Comments