Comments (3)
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.
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.
@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)
- NonFree lib in F-Droid build HOT 1
- Add quick mixer view HOT 1
- Only working with network connection HOT 2
- Unable to play multiple sounds at once HOT 2
- Navigation text is too long HOT 5
- Sleep cycle aware alarms
- Replace all vector icons with their round variants
- Longer sound fade in/out HOT 2
- Add master volume control
- Add reference HOT 1
- Offline access HOT 3
- Add editing for presets
- The timer doesn't work correctly HOT 4
- Ability to set alarm duration HOT 4
- Saved preset is displayed as "Unsaved Preset" when pressing the stop button (intermittently occuring...) HOT 13
- [BUG] Crash, when starting the app HOT 1
- App crashes after signing in
- Design issue: The background images in the library have a vibrant, confusing, saturated green background color. (see screenshot) HOT 2
- Enhancement: Bazel Build Migration
- App Crashes when Downloading Sounds HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-app.