How to stream video file with sftp on android

0 votes
asked May 12, 2014 by Thanh Nguyen (120 points)
edited May 13, 2014

I trying your .NET library. On Android, when I connected on SFTP server,I can upload/download file but i need stream video/audio from server to android. Is it possible? Have you any idea? Thanks a lot.

Applies to: Rebex SFTP

1 Answer

0 votes
answered May 13, 2014 by Tomas Knopp (58,890 points)
edited May 13, 2014

The Sftp class offers GetFile method which can transfer the file from the SFTP server into a Stream. If you are able to process the video from the Stream then, you could use the GetFile(string, Stream) overload to download the file and process the Stream then (i.e. play the video/audio as it gets downloaded).

Please bear in mind that the SFTP protocol is request based which means it was not designed specifically for the task of video/audio streaming, but still the task can be acomplished as suggested above.

...