<html>
<head>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript" src="https://ssl-webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject2.js"></script>
    <script type="text/javascript" src="https://www.reallusion.com/crazytalk/Unity/samplecode/CTWebPlayer.min.js"></script>
    <script type="text/javascript">
        var player = new CTWebPlayer();
        $(function () {
            player.playerUrl = "https://www.reallusion.com/crazytalk/Unity/samplecode/CTWebPlayer.unity3d";
            player.init($("#unityPlayer"), function () {

                player.setLookatStrength("mild");
                player.loadActor("https://www.reallusion.com/crazytalk/Unity/samplecode/SampleCode9/Interaction_lookat.uctmodel", {
                    showActor: true,
                    idleMotionUrl: "https://www.reallusion.com/crazytalk/Unity/samplecode/SampleCode9/Affirmative.uctidle"
                });
            });
        });

        function SetScreen() {
            player.setLookat("screen");
        }


        function SetPlayer() {
            player.setLookat("player");
        }


        function SetNone() {
            player.setLookat("none");
        }

        function SetMild() {
            player.setLookatStrength("mild");
        }


        function SetMedium() {
            player.setLookatStrength("medium");
        }


        function SetStrong() {
            player.setLookatStrength("strong");
        }
 

    </script>
</head>

<body>
    <table style="text-align:center;margin-left:auto; margin-right:auto;">
        <tr>
            <td colspan=2>
                <div id="unityPlayer" style="width: 640px; height: 480px;">
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <input type="button" value="Screen Mode" onclick="SetScreen()" class="button" />
                <input type="button" value="Player Mode" onclick="SetPlayer()" class="button" />
                <input type="button" value="None" onclick="SetNone()" class="button" />
            </td>
            <td>
                <input type="button" value="Mild" onclick="SetMild()" class="button" />
                <input type="button" value="Medium" onclick="SetMedium()" class="button" />
                <input type="button" value="Strong" onclick="SetStrong()" class="button" />
            </td>
        </tr>
    </table>
</body>
</html>