Coder Social home page Coder Social logo

Comments (4)

OxygenCobalt avatar OxygenCobalt commented on July 16, 2024

As far as I'm aware, requesting access to a folder is not the "new standard" for media apps. According to This official article. MediaStore is the recommended way to index a devices media.

What I believe you're talking about is the Storage Access Framework, which is more-so meant for file-picking tasks. On top of that, streaming a file from the internet is not the same as streaming media. One is a simple download operation, while the other is a much more complicated process that would require refactoring much of Auxio to accommodate.

Unless I'm misunderstanding something here, I can't implement this.

from auxio.

JosephPelletier avatar JosephPelletier commented on July 16, 2024

Yes the storage access framework is what i am talking about (thanks for the name) and you did misunderstand me.

I am not suggesting you implement media streaming, I'm suggesting that you implement an SAF Client app that can be used optionally.
described here

  • Client app—A custom app that invokes the ACTION_CREATE_DOCUMENT, ACTION_OPEN_DOCUMENT, and ACTION_OPEN_DOCUMENT_TREE intent actions and receives the files returned by document providers.

The SAF should call the document provider's code to retrieve the document (a music file in this case) from local storage or the network. Neither your app nor the SAF needs to be network aware since the Document Provider handles it if applicable. Document providers do not have to be cloud applications either, Termux is also a document provider, it provides access to the termux user's home folder which is part of the app's private storage.

my understanding is that this is relatively simple to do and should only require change to the code that opens media files, and of course the related UI.

If it sounds too sketchy or complex, ill take a crack at it if i get the time in the next couple months. I have tons of programing experience, but almost none with android, so we will see.

from auxio.

OxygenCobalt avatar OxygenCobalt commented on July 16, 2024

Okay, so you're saying that I implement a file-picker action that opens a music file through a provider? I have the opposite workflow implemented [e.g opening a music file through a file picker will open Auxio], but not this. I'll try to see what I can do.

from auxio.

OxygenCobalt avatar OxygenCobalt commented on July 16, 2024

Looking back on this, I really don't see the point in this. You can open music from the file manager, and other theoretical uses [like streaming] are more aligned with the possible idea of converting Auxio to a SoundPod client. I also have no clue where to add this. Sorry.

from auxio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.