I am developing a ChromeCast app that instances a YoutubeSupportFragment in the presentation display.
My problem is, when the app goes background, Youtube video is stopped. I've traced that YoutubeSupportFragment's onPause pauses the video.
Is there a way to somehow attach the fragment lifecycle to the CastRemoteDisplayLocalService so fragment's onPause is not called?
I've tried to set the fragment as retained with setRetainInstance but no luck :(