GithubHelp home page GithubHelp logo

Chromecast about android-app HOT 3 CLOSED

trynoice avatar trynoice commented on June 7, 2024
Chromecast

from android-app.

Comments (3)

ashutoshgngwr avatar ashutoshgngwr commented on June 7, 2024 1

Leaving my notes from the past research about this feature.

  • Chromecast doesn't support streaming local media files
  • In order to stream local media, the sender application will need to host an HTTP server that outputs the media stream for the receiver application.
  • In order to integrate this into Noice, we need to transform PlaybackManager into a generic interface. CastPlaybackManager can be one of its concrete implementations. In this case, CastPlaybackManager will be responsible for listening to the playback control events. Maintain a state of playbacks and combine all playbacks into a single stream for outputting it via the HTTP server.

I can make no guarantees about the timeline and implementation of the feature. It requires significant work in the existing code-base as well as it brings in many new components.

Edit: I further looked into it and found out Android doesn't really have any high-level audio manipulation libraries. Even if it did, it will unnecessarily complicate the whole app. At the same time, I found out that we could create a custom receiver application and port the playback logic to it which sounds better than my original thoughts.

from android-app.

forivall avatar forivall commented on June 7, 2024 1

I took a look at the two open source apps that support casting, and it looks like AntennaPod simply forwards the media file from the server where it was downloaded, https://www.github.com/AntennaPod/AntennaPod/tree/develop/core%2Fsrc%2Fplay%2Fjava%2Fde%2Fdanoeh%2Fantennapod%2Fcore%2Fcast and VLC does launch its own server, but it's in c++, so... ¯_(ツ)_/¯ https://github.com/videolan/vlc/blob/master/modules/stream_out/chromecast/cast.cpp

from android-app.

ashutoshgngwr avatar ashutoshgngwr commented on June 7, 2024 1

@forivall i am jumping around fences on which way to go. The former method is way more complex and requires refactoring (which I am personally tired of). Latter is simple to implement because then sender app could just send playback events and receiver app could do the actual playback. But then any change to Playback logic would need to be implemented twice. I was already planning on introducing a feature that would cause something like it (#144)

I guess I need to do a lot more research before starting to smash my keys on this one. 😅

from android-app.

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.