mpvkit / MPVKit

mpv library for iOS, macOS, tvOS applications
GNU Lesser General Public License v3.0
37 stars 12 forks source link

Libsmbclient does not support anonymous links #21

Open huaibaobao2017 opened 1 week ago

huaibaobao2017 commented 1 week ago

Libsmbclient seems to not support guest anonymous playback links, such as: smb://guest@server/share/filename. mp4 smb://guest:@server/share/filename. mp4 smb://server/share/filename.mp4 . If possible, what should the complete link be? Can it be replaced with libdsm?

work find with follow: smb://username:password@server/share/filename. mp4

huaibaobao2017 commented 1 week ago

[stream_callback] v: Opening smb://192.168.1.105/Users/2.mp4 [ffmpeg] v: Opening smb://192.168.1.105/Users/2.mp4 [ffmpeg] error: smb: File open failed: Invalid argument [stream] error: Failed to open smb://192.168.1.105/Users/2.mp4. [cplayer] v: Opening failed or was aborted: smb://192.168.1.105/Users/2.mp4 event: end-file event: idle

cxfksword commented 1 week ago

I tested it's OK, Perhaps the anonymous access for your SMB server is not configured correctly.

huaibaobao2017 commented 1 week ago

I tested it's OK, Perhaps the anonymous access for your SMB server is not configured correctly.

No, I have tried other apps and they all play normally. Simulators and real machines both have the same error.

cxfksword commented 1 week ago

What's the type and samba protocol version of your samba server? Maybe libsambaclient isn't compatible with it.

huaibaobao2017 commented 1 week ago

Neither SMB1.0 nor SMB3.0 works

截屏2024-10-16 15 10 48
cxfksword commented 1 week ago

Libsmbclient is incompatible with anonymous access to Windows share. You can attach a default guest account when connecting to it.