Comments (2)
I seem to have verified via debugging that the Activity, despite making another session token, does indeed connect to the MediaLibraryService that has been started by the application.
There is one weird thing that may be a bug and, if so, I can add an issue for it. When a controller calls setMediaItem, the session's onAddMediaItems is called. setMediaItems says that it clears the playlist, so how is onAddMediaItems supposed to know if the call was from setMediaItems or one of the addMediaItem(s) methods in which the playlist should not be cleared?
from media.
Android makes sure there is only a single instance of a given service running at the same time.
How is an external client supposed to know the ComponentName so they can connect to it? Are they able to find it via an Intent that matches the given actions declared in the intent-filter for the service?
Yes. An app can query the PackageManager
for services that other apps have in their manifest when exported=true
.
so how is onAddMediaItems supposed to know if the call was from setMediaItems or one of the addMediaItem(s) methods in which the playlist should not be cleared?
I think the library handles this for the user. There is Callback.onSetMediaItems()
that by default delegates to onAddMediaItems
and the calls player.setMediaItems(items, windowIndex, startPositionMs)
.
from media.
Related Issues (20)
- Broken playback resumption HOT 1
- Workaround fix to handle 416 HOT 8
- Fire TV - Google DAI ad playback errors on CMAF streams HOT 2
- Approaches to lazily loading content and building a playlist HOT 2
- How to prevent HDR tracks from being selected when connected to a non-HDR display HOT 1
- CMCD data as query parameter is url-encoded twice HOT 1
- How to pass request headers for HttpDataSource dynamically HOT 3
- How to set a playback error with media 3 HOT 1
- Two tracks are getting downloaded by Exoplayer and IMA SDK HOT 4
- Not able to play files from local cache
- Shaders applied as GLEffects in transformer have different results than applying them directly to a GLSurfaceView HOT 9
- [media3-1.1.0] Codec, Bitrate and version info @ Playing audio/mpeg HOT 2
- Media3 ExoPlayer PlayerView UI - seekbar doesn't work (to change position) and rewind/fast forward buttons are disabled HOT 1
- Opening the app, when notification is clicked HOT 4
- Video playback is not smooth on Mi Box S HOT 5
- ExoPlayer Dash PlayReady Support: Online Playback Success, Offline Download Failure with PlayReady License HOT 1
- Cannot Play HDR/DOVI videos with DRM HOT 3
- RTSP streaming error: Malformed SDP line: i={contentIsMalformed=true, dataType=4} HOT 6
- Security exception HOT 3
- How to make work Live Dash DRM with rotated keys
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.