Keep media keys
Created by: bbert
The goal of this PR to enable maintining the MediaKeys instance and all valid MediaKeySessions during the MediaPlayer lifetime.
The use case is a live service for which you instantiate a MediaPlayer to playback all the streams. Then you can specify the keep the MediaKeys instance when one zaps over all the streams/channels. The benefits are:
- only 1 license request per channel during the MediaPlayer lifetime
- zapping time is reduced since you do request media key system access only at 1st playback, and do not need to request license if channel has been already played
By default, this option is disabled.
The condition before enabling this option is to ensure that the key system configuration (license type, audio/video robustness levels...) is the same for all streams/channels