DMVideoPlayer/DMPlayerController.cs
/// <summary>
/// When the player is already loaded this allows to us to call on the JS methods of the player and thus allows to interact with it
/// Load allows us to start a video without having to requery a URL
/// </summary>
When the player is already loaded this allows to us to call on the JS methods of the player and thus allows to interact with it
Load allows us to start a video without having to requery a URL
When the player is already loaded this allows to us to call on the JS methods of the player and thus allows to interact with it Load allows us to start a video without having to requery a URL
private void Load()
        {
            if (WithParameters == null)
                return;
            if (WithParameters.ContainsKey("jsonEnvironmentInfo"))
            {
                InitEnvironmentInfoVariables(WithParameters["jsonEnvironmentInfo"]);
            }
            else
            {
            }
            if (WithParameters.ContainsKey("loadedJsonData"))
            {
                CallPlayerMethod("load", VideoId, WithParameters["loadedJsonData"]);
            }
            else
            {
                CallPlayerMethod("load", VideoId);
            }
            if (WithParameters.ContainsKey("mute"))
            {
                if (WithParameters["mute"] == "true")
                {
                    Mute();
                }
                else
                {
                    Unmute();
                }
            }
        }
private void Load ( ) { if ( WithParameters == null ) return ; if ( WithParameters . ContainsKey ( " " ) ) { InitEnvironmentInfoVariables ( WithParameters [ " " ] ) ; } else { } if ( WithParameters . ContainsKey ( " " ) ) { CallPlayerMethod ( " " , VideoId , WithParameters [ " " ] ) ; } else { CallPlayerMethod ( " " , VideoId ) ; } if ( WithParameters . ContainsKey ( " " ) ) { if ( WithParameters [ " " ] == " " ) { Mute ( ) ; } else { Unmute ( ) ; } } }
When the player is already loaded this allows to us to call on the JS methods of the player and thus allows to interact with it
Load allows us to start a video without having to requery a URL
When the player is already loaded this allows to us to call on the JS methods of the player and thus allows to interact with it Load allows us to start a video without having to requery a URL
//set param for partners //check to see if we wish to mute or not the video