-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MediaItem.Builder() doesn't contain StreamType in ExoPlayer 2.12.0 #7915
Comments
There is also a problem with Earlier i used But now |
Maybe it's better to leave |
You can pass a If you want to transport custom data with the |
Could you please give an example how to do that?
|
Sorry to not give you enough details. You are right it's confusing. Specifically because the conversion back which confused you is currently unused. Please accept my apologies of not being clear here. On the bright side, this should make things easier for you. You said above that your app is building a Implement your custom
You could use any object as the tag. But given your code builds the media queue item already it's probably easiest to just use this. Your app can now use the same API like |
Thank you very much for the explanation. It's working now! |
Cool. I'm glad it works :) I close this issue for now. Please re-open if you have further questions. Happy to help! |
Hello,
Until ExoPlayer 2.12.0 i used
MediaInfo.Builder()
where i could set media stream type, for example:.setStreamType(MediaInfo.STREAM_TYPE_LIVE)
and then i passed all information to theMediaQueueItem.Builder()
to cast video to Google Chromecast.In the new ExoPlayer 2.12.0 version i have to use
MediaItem.Builder()
now. And it is impossible to set media stream type now.Or maybe i'm missing something?
Thank you.
The text was updated successfully, but these errors were encountered: