Re: GridFS C# stream videos on Webpage

From: Kevin Adistambha <kevinadi@xxxxxxxxxxx>
To: mongodb-user <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Wed, 20 Apr 2016 00:48:13 -0700 (PDT)
Why ads?


Hi Sunil,

Can i stream videos from MongoDB (in GridFS) onto my webpage?

GridFS is a convention to store files larger than 16 MB 
<https://docs.mongodb.org/manual/core/gridfs/#when-to-use-gridfs> in 
MongoDB, and any interpretation of the contents of the stored files is left 
to the application.

The C# driver allows you to read files in GridFS as a stream 
<http://api.mongodb.org/csharp/current/html/T_MongoDB_Driver_GridFS_GridFSDownloadStream.htm
(with more examples in the Downloading Files 
<http://mongodb.github.io/mongo-csharp-driver/2.2/reference/gridfs/downloadingfiles/
page), but your application code has to handle other parts of the streaming 
and playback mechanism, such as:

   - buffering 
   - reassembling the video packets at the receiver 
   - seek capabilities, if needed 
   - etc. 

You might find more information regarding GridFS in the following pages:

   - MongoDB manual: GridFS <https://docs.mongodb.org/manual/core/gridfs/
   - C# Driver GridFS section 
   <http://mongodb.github.io/mongo-csharp-driver/2.2/reference/gridfs/

Best regards,
Kevin


-- 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/36fff0de-231e-4256-9d24-dc1e5005fa02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?