Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpv backend does not open files from SMB share (or other non-internal fs locations) #81

Open
vickyorlo opened this issue Nov 20, 2023 · 5 comments
Assignees
Labels
mpv Issues specific and exclusive to mpv playback engine

Comments

@vickyorlo
Copy link

As in the title.
The situation: A movie file is loaded via MiXplorer into Syncplay-Android, either from a samba share (smb://) or MiX's own USB OTG driver (usb://).
On the mpv backend, syncplay-android loads the file enough to get the bitrate and an incorrect length, but the seekbar stays at 00:00 and unpausing does nothing.
The exact same file copied onto the device's internal flash plays with no problems.

On the exaplayer backend, the file plays fine, but with issues as noted by other users (for example subtitles).

This is a problem for me as I'm using syncplay-android on an Android TV device with maybe 7 gigs of free space, and it only supports fat32 for external storage. I have a movie file that's more than 8gb.

@yuroyami yuroyami added the mpv Issues specific and exclusive to mpv playback engine label Nov 21, 2023
@yuroyami
Copy link
Owner

For file loading, syncplay-android implements (almost) the same logic used in the official mpv-android app. Could you please try to reproduce the issue with the official mpv-android app? Let me know how it goes.

@SimplisticGH
Copy link

SimplisticGH commented Feb 14, 2024

I'm not sure how mpv-android reacts natively, but I do know that file explorers, such as Material Files, have the ability to serve content to mpv-android from SMB shares through the app share/picker screen. But since syncplay-android gets to decide how content is opened, that ability is broken.

@yuroyami
Copy link
Owner

@SimplisticGH Upon further revision on this in attempt to see what's going on, I found out that mpv does indeed support SMB files and paths, the URIs usually begin with smb://. The app already provides means to open URLs. I assume there is a way to obtain those paths somehow ?

Nonetheless, this seems like a good opportunity to actually add support to let other file managers/explorers to serve paths to syncplay-android.

@yuroyami yuroyami self-assigned this Apr 11, 2024
@vickyorlo
Copy link
Author

Hi again, sorry for the complete lack of response for so long. I had actually lost access to the TV I was testing this with, and I only regained access recently. But, to answer, yes, the mpv-android app does support playing files via SMB. The built-in filepicker does not allow this, but sending the file to mpv via something like MiXplorer plays the file perfectly fine.

@SimplisticGH
Copy link

SimplisticGH commented Apr 27, 2024

The app already provides means to open URLs. I assume there is a way to obtain those paths somehow ?

I can with material files, but upon attempts to add files it only manages to recognize the file name.

However, it seems that CIFS Documents Provider is capable of patching through the default file explorer and successfully playing SMB videos with syncplay-android, so the need for official support might be lower priority now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mpv Issues specific and exclusive to mpv playback engine
Projects
None yet
Development

No branches or pull requests

3 participants