Comments (4)
Yeah, I think you are right that the wording and the analogy of the wording to notifyChildrenChanged
creates the impression that it's working the same.
As you discovered, the implementation doesn't intend this. Unlike the case of subscriptions for parentId
, controllers issuing a search are not tracked in the same way.
I haven't tested, but from reading the code, this works in the sense that if you track the controller yourself and then call notifySearchResultChanged
for the controller, the message with the new, updated search result is sent to the controller.
So the library doesn't restrict you to do so I'd think. If the controller is still connected, you can send such an update if this makes sense in the context of your app.
Can you confirm such updates work for your app?
from media.
Okay, I can write my own tracking, but how can I know if a controller disconnects or otherwise unsubscribes from a search result @marcbaechinger?
from media.
Media3 doesn't have a concept of subscribing to a search and I don't think this will be added to the API. I don't think tracking more than a single search makes sense, but that's up to an app to decide for its use cases.
When a controller disconnects, MediaSession.Callback.onDisconnect(MediaSession, MediaControllerInfo)
is called to notice the app about the disconnect.
from media.
Okay, that sounds good. Thanks.
from media.
Related Issues (20)
- Please support rtsp payload type 33 HOT 1
- Exception: Malformed URL (RTSP) HOT 3
- Can the anchor position of a video be changed by effects in a composition? HOT 1
- Playback stops after 60 secs where video continues for 54 sec and audio continues for 6 more seconds HOT 2
- How to dynamically change the audio url using media3 exoplayer? HOT 3
- Crypto key not available: ERROR_DRM_NO_LICENSE HOT 2
- Player.Listener onIsPlayingChanged method not called after the preroll ad on Android 14
- Issue with Surface Handling when Switching Between Two ExoPlayers
- Why ExoPlayer in Android OS shows black preview screen while preview HOT 2
- Provide Option to read unsynced lyrics using Metadata or ID3Tags
- Expose current focus state from `AudioFocusManager`
- OfflineLicenseHelperdownloadLicense stuck
- MediaSessionCompat queue does not use ShuffleOrder
- Presentation Time Offset for MPEG DASH manifests not applied correctly for xHE-AAC and AC4 streams HOT 1
- ExoPlayer signals `Player.STATE_ENDED` with MPD transition from dynamic to static
- Support DisplayManager to output video to type-c (DP) port and only show control on the phone
- EVENT_VIDEO_SIZE_CHANGED not called then video tracks are not supported, but played
- How can I pause the player when we change the HDMI source
- Unable to play Linear DRM: LinearDrm: PlaybackException MediaCodecAudioRenderer error, index=1, format=Format(7, eng, null, audio/mp4a-latm, mp4a.40.2, 93000, en, [-1, -1, -1.0], [2, 48000]), format_supported=YES
- Unable to get CEA-608 text tracks to appear in HLS live stream.
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 media.