SMB write file using VLCKit

iOS, iPad, iPhone, tvOS specific usage questions
shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

SMB write file using VLCKit

Postby shaybc » 27 Apr 2016 23:58

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.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: SMB write file using VLCKit

Postby dfuhrmann » 28 Apr 2016 07:42

No, libdsm is a read only smb library, AFAIK.

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: SMB write file using VLCKit

Postby shaybc » 28 Apr 2016 10:40

off topic (not a VLC question) - is there any smb lib for SMB that can write files for objective-c / IOS / Apple-tv ?

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: SMB write file using VLCKit

Postby fkuehne » 28 Apr 2016 12:08

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: SMB write file using VLCKit

Postby shaybc » 28 Apr 2016 12:10

i wen through the code and only seen write operations to the local device (for download purposes) - are you sure?

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: SMB write file using VLCKit

Postby fkuehne » 28 Apr 2016 12:14

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)
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: SMB write file using VLCKit

Postby shaybc » 28 Apr 2016 13:45

Felix - you are the best, thank you for everything

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: SMB write file using VLCKit

Postby shaybc » 02 May 2016 02:02

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.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 13 guests