If Kodi should be part of the AMLogic Devices in the future, something has to be done. Drain of images on Streamchange is told to be nearly unpossible. AMlayer needs a lot of buffered packets (1-2 secs) before it gives out decoded images CVideoReferenceClock has gone, there is no way anymore to sync the standalone AMPlayer with kodi Audio Unfortunately the current situation is a mess: AMCodec will not be suported anymore in kodi 17 for all platforms including Android. Now after implementing on my Intel laptop with DXVA H/W decoding I decided to port the changes (kodi 17 alpha / addons) to my C1. The interface used for the communication between addon / kodi (inputstream) is new and only available in kodi 17. Kodi gets raw encoded mp4 packets wich has to be decoded by kodi. widevine lib is used for the DRM stuff (decrypting). The logic inside the addons measures bandwidth and enables the best possible streams.
The result are two addons, inputstream.mpd and inputstream.smoothstream wich consumes both slightly different manifest files wich contain the video sources in many different resolutions and qualities.
I spend the last month getting amazon / skygo running under kodi again.