Play Video from SMB/CIFS file server - flutter

I'm a novice in SMB.
Current, I need to read and play .mp4 video files from an SMB server in flutter app.
But currently, we haven't found any possible library for this task.
Does anyone know how to open and read files in SMB from flutter app.

Have you tried this: libsdms?
To play mp4 files though you need to also embed an http server in your app, since you need an http path (instead of the smb file path you get). So you need to convert your file to bits, then stream via http and play the http file in your app.
Check this for more : http server

Related

How to save Flutter web file_picker selections to host directory

There are numerous examples online for using file_picker and uploading to Firestore, SQL etc; but it appears there are none for uploading right to the webhost directory where index.html is being served (i.e ./uploads).
As I am using flutter web in a corporate environment my options for spinning up remote storage options are nearly nil. I merely want my flutter web app to allow users to upload to our own environment (I host my web build off Sharepoint and it works perfect).
The solution for posting to web found here (https://stackoverflow.com/a/65759028/82856) is very close to what I need except for the http.MultipartRequest part as I don't have a server API listening for POST requests. What other options do I have for merely writing uploads to a directory like ./upload? Thanks in advance.

Serve my own HLS .m3u8 & .ts files over HTTP from Adobe Experience Manager for playback via Video.js

I have created my own set of m3u8 and .ts files using FFmpeg. This set works perfectly when played via my video.js player, when served from Apache, Microsoft IIS, or NGINX. I wish AEM to perform the same simple server task.
How do I upload this set of files to AEM, so that they are not altered by AEM in any way, so I can play them via my video.js video player?
(I simply want to serve .m3u8 and .ts files over HTTP via AEM. I do not wish the files to be re-encoded, nor streamed via an Adobe video service of any kind.)

Can I access and change a file on ftp server using flutter WEB?

I already read this article about working with ftp:
https://pub.dev/documentation/ftpclient/latest/
but this simply doesn't seem to work on flutter Web because of using dart.io package.
Is there any way or library to access and write files to ftp server?
thanks.

Build file server to upload files from IPhone and Mac using Raspberry Pie

Is it possible to build a File storage server using Raspberry Pi 3 to upload files from apple device using Wifi?
Yes, I believe so. Use nginx or Apache to host it and have a PHP or JS script that accepts files from an HTML form and saves them.
For me, Apache is easier to use, but I prefer nginx as it is much faster.
Once you have the server and HTML/PHP/JS set up just navigate to your Pi's IP in Safari. There you go!
You do, however, have limitations. Saving files to an external flash drive is your best option, unless your Pi is only being used as a server. In that case, make sure you chown the folder where you would like to save the files to the user that the server uses (www-data for nginx, I think it's the same for Apache)
If I was unclear about anything, just let me know!

mp4 videos not streaming on site

I am using jwplayer to play mp4 videos on my site. The files are huge. They dont start streaming until the whole video has buffered. I need the videos to stream and buffer at the same time.
I read all forums and they mentioned about moving the metadata from the end to the start of the file using some external software like qtfaststart.
Apart from using a software like qtfaststart is there any other method for the developers to code and make the mp4 videos to stream on site?
Maybe with the help of FFmpeg or some other way?
I don't think you can accomplish that with FFMPEG alone, we are currently using MP4Box. If your development team is working on linux, there are several guides on compiling and installing it.
From the MP4Box site:
MP4Box can be used to prepare files for different delivery protocols, mainly HTTP downloading or RTP streaming.
To prepare a file for HTTP download, the following instruction will interleave file data by chunks of 500 milliseconds in order to enable playback while downloading the file (HTTP FastStart):
MP4Box -inter 500 file.mp4
ffmpeg -i infile.mp4 -c copy -movflags faststart outfile.mp4
or
mp4box -ipod infile.mp4
or
qt-faststart infile.mp4 outfile.mp4