google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.74k stars 6.03k forks source link

How to support seamless playback between jumping to ad h5 web detail page and backing to player actiivity? #7200

Closed Romantic-LiXuefeng closed 4 years ago

Romantic-LiXuefeng commented 4 years ago

As the title, I using my own ad SDK, not using IMA extension. The ad need to jump the h5 detail web page when user click the button, how to support pause the player when jump to h5 detail page and resume the player when back to the player activity?

AquilesCanta commented 4 years ago

Can we rephrase the issue as a question on how to seamlessly transition playback from one activity to the other? Is the ads part related in any way? Please clarify.

If yes, then unfortunately this is something that needs to be fixed by the app since it's inherent to activity lifecycle, which is out of ExoPlayer's control. There's is plenty of material about this available, in this issue tracker (e.g. #4706, #7155) and in other places (e.g. Stack Overflow).

Romantic-LiXuefeng commented 4 years ago

@AquilesCanta Thanks!