Page 1 of 1

SMB write file using VLCKit

Posted: 27 Apr 2016 23:58
by shaybc
i know that VLCKit is using the libdsm (smb client in c),

i also successfully used VLCMedia, VLCMediaList and VLCMediaDiscoverer to browse my local network shares with a simple swift code,

but is it possible to use the VLCKit to write files to a network SMB share ?

for instance a text file (not a captured media),

would love any suggestion or direction,

Shay.BC.

Re: SMB write file using VLCKit

Posted: 28 Apr 2016 07:42
by dfuhrmann
No, libdsm is a read only smb library, AFAIK.

Re: SMB write file using VLCKit

Posted: 28 Apr 2016 10:40
by shaybc
off topic (not a VLC question) - is there any smb lib for SMB that can write files for objective-c / IOS / Apple-tv ?

Re: SMB write file using VLCKit

Posted: 28 Apr 2016 12:08
by fkuehne
libdsm used by VLCKit supports read and write operations as well as copy and move. You can find it here: https://github.com/videolabs/libdsm - code under LGPLv2.1. There is a also a third party ObjC wrapper available, but I don't know if it was updated to support write operations.

Edit: third party wrapper does not support write or file system operations.

Re: SMB write file using VLCKit

Posted: 28 Apr 2016 12:10
by shaybc
i wen through the code and only seen write operations to the local device (for download purposes) - are you sure?

Re: SMB write file using VLCKit

Posted: 28 Apr 2016 12:14
by fkuehne
Yes, we merged that late last year: https://github.com/videolabs/libdsm/com ... 39d71ee1cb

(This is obviously not exposed in VLCKit because it is not related to media playback)

Re: SMB write file using VLCKit

Posted: 28 Apr 2016 13:45
by shaybc
Felix - you are the best, thank you for everything

Re: SMB write file using VLCKit

Posted: 02 May 2016 02:02
by shaybc
so after trying the libDSM which is embedded within the TVVLCKit i have created a simple Objective C file that will allow me to read and write text files to an SMB share on apple TV (and IOS),
I use the VLCMedia and VLCMediaList to get computers share, file tree browsing and actual streaming,

but the only down side i have encountered is that the files i am writing does not allow me to set the chmod or permission or ownership on them,

is it possible? or only the writing user will have permission and the rest is No Permission ?


B.T.W.

i am releasing this class as an open source project: https://github.com/Obyect/SMBDriver
since the ability to SMB on IOS / Apple TV is very hard to find (beside - https://github.com/TimOliver/TOSMBClient which doesn't support Apple TV, writing or swift)

Shay.BC.