Comments (12)
Hi @marcchapeau ,
I'm glad you like this package.
I believe your issue is related to #53
Please confirm you're converting video to required formats to support all browsers, see caniuse video
But at the same time it is not explains why video stops. In terms of demo app (hosted on meteor) it may be speed issue, as meteor platform for demo apps is not good in performance and speed. Have you tested it locally?
from meteor-files.
Thx for your answer.
Yes, I tested it locally and on production with my own dedicated server with the same result. As I said, the demo video file of VideoJS works on all browser so it is probably not a video format issue. The only difference i can see is that on VideoJS, the video is directly served from server and with your package and the "?play=true" request the video is manually served with partial-range http request. Of course, I tried to directly put the same video file in the meteor public folder and it works perfectly (without using your package).
Maybe this is due to the implementation of the "partial-range" between the different browsers...
Thanks for your help.
from meteor-files.
partial-range
is tested on most browsers in major version. If wrong part or length of chunk is returned in headers, you should see error in "Network" tab of dev-tools (in Chrome for example). Are you sure file is served by Meteor (nodejs), not a proxy server, like nginx or Apache?
- Do you have any errors, js or network, or any other?
- You're playing video by build-in
video
tag or with using third-party js-video-player?
from meteor-files.
With Chrome in network tab of dev-tools i can see each partial-range request without problem. With Firefox, it's strange because there is no line representing the partial-range request.
When i try this on my own environnement, i get exactly the same result with your live demo. I just uploaded the video on your demo website.
I think this is not an environnement problem.
Sorry for your time but I try to solve this problem without success and your package is the only one working good to upload and serve video file with meteor (except this little problem ^^)
from meteor-files.
Confirmed, only in FF.
What I see right now, the FF is not requesting next chunk from server after receiving 206
response code, and keeps playing first chunk. On screenshot you can see correct response and headers.
Could you please try third-party player, it should fix this issue, as they know how to handle such cases.
Or try to use link without ?play=true
query, and/or try to use ?download=true
query (both methods will increase sever's CPU and memory usage).
Sorry, I but I don't have time now to code and play around with settings. But I'm able to answer for any further questions. And do not forget to tell about your solution.
from meteor-files.
Hey @marcchapeau ,
Any news on your end?
from meteor-files.
Sorry, I was working on another project.
But yes, I have some news. I tried a third party player (videoJs) and there is the same problem. With Chrome, it works perfectly and with FF always the same first chunk.
I tried with and without ?play=true
, and with ?download=true
but there is always the problem. The only difference is with ?download=true
, you can right click on the video player to download the file. Without ?download=true
or with ?play=true
, the dowloaded file is an empty file.
So sorry but i did not find a solution to solve this problem...
from meteor-files.
@marcchapeau I've called for help of community, you may would like to spread it bigger (as i don't have much followers).
Or/and aside to it, you can ask on SO. Reference this thread, with tags of firefox
, node.js
, a/v streaming
, meteor
from meteor-files.
@marcchapeau any news around this issue?
from meteor-files.
Hi @marcchapeau could you please check on your end, if this issue is solved at latest release?
from meteor-files.
Sorry but unfortunately the problem does not seem to be resolved.
With Chrome it works well, but with FF only the the first chunk is sent to the browser.
Thank you for the support of Meteor 1.3.
from meteor-files.
Heads up, this issue was solved in 1.4.0, could you please confirm on your end?
BTW if you're curious what it was caused by, read:
- Mozilla Bug 1182869
- Mozilla Bug 570755
- In a short form: Do not use Content-Length within Content-Encoding: chunked and 206 response code
from meteor-files.
Related Issues (20)
- [FilesCollection.ServiceFile] Path "/assets/app/uploads/ServiceFileCollection" is not writable! HOT 2
- How to change item metadata before it is inserted into the collection? HOT 9
- How do I update a filesCollection after Server side Write created? HOT 1
- Get user ip on upload HOT 9
- Since Meteor 2.11 - Exception in setTimeout callback: TypeError: fs.remove is not a function HOT 9
- Question: Can you store directly in GridFS? HOT 2
- Question: Save link in database?
- Update aws-sdk to v3 in 'Use AWS:S3 As Storage' Documentation HOT 4
- Files.load -> options.fileName is not in filepath HOT 2
- FilesCollection.find(...).each() not working properly? HOT 1
- HTTP uploads not working, multi-instance/cluster environment NGINX balanced HOT 5
- onAfterUpload not throwing error in uploader.on('end') HOT 5
- Cannot stream a video with filenames longer than 80 characters HOT 1
- wrong custom error message when using HTTP
- Make Meteor-Files compatible with meteor-desktop? HOT 4
- Uncaught error when uploading an empty file
- Help Wanted: Method '_FilesCollectionAbort_attachments' not found [404] HOT 1
- Match error: Unknown key in field HOT 5
- User can not be determined in protected callback in Firefox HOT 5
- [3.0.0-beta.6] fileObj._id on upload end ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-files.