public void CreateImaPlayer(VideoListItem video)
        {
            imaPlayer?.Release();

            videoPlayerContainer.RemoveAllViews();
            string adTagUrl   = video.adUrl;
            string videoTitle = video.title;

            imaPlayer = new ImaPlayer.Builder(this, videoPlayerContainer, video.video)
                        .SetVideoTitle(videoTitle)
                        .SetAdTagUrl(adTagUrl)
                        .Build();

            imaPlayer.Play();
        }
        public void CreateImaPlayer(VideoListItem video)
        {
            imaPlayer?.Release();

            videoPlayerContainer.RemoveAllViews();

            string adTagUrl   = video.adUrl;
            string videoTitle = video.title;

            var settings = new ImaSdkSettings();

            settings.AutoPlayAdBreaks = true;
            imaPlayer = new ImaPlayer(this, videoPlayerContainer, video.video, videoTitle, adTagUrl);
            imaPlayer.SetFullscreenCallback(this);


            Drawable logo = Resources.GetDrawable(Resource.Drawable.gmf_icon);

            imaPlayer.SetLogoImage(logo);

            imaPlayer.Play();
        }