In this sample, you can simply use the showPlaybar function to hide or show the
play bar at the bottom of the web player, because sometimes you do not
want the audiences to play, stop the project you have prepared to show them.
Using the showPlaybar Function
This sample contains 2 buttons, their behaviors are:
Click the first button, Show, to show the play bar.
Click the second button, Hide, to hide the play bar.
Copy and paste the code in-between the <head> and
tags of your custom web page.
The purposes of the functions:
This function defines the address and the position of the CrazyTalk Web Player
in the custom web page and initializes the player;
meanwhile, loading a project (Cute_Dog.uctProject) and an idle motion
file without auto-playing back.
function shows the play bar.
function hides the play bar.
The adjustable codes in the functions: $(function ()
Replace the below address of the CrazyTalk Web Player with the one within your self-hosting
Please refer to the
Loading Projects for more information about
the adjustable parts in this function.
player.showPlaybar(boolean): This line
determine to show or hide the play bar. The possible