diff --git a/docs/api.md b/docs/api.md index 032d38735..bd88a6a0c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -186,7 +186,7 @@ Now that you have access to a ready player, you can control the video or respond {% highlight javascript %} - myPlayer.enterFullScreen(); + myPlayer.requestFullScreen(); {% endhighlight %} @@ -197,7 +197,7 @@ Now that you have access to a ready player, you can control the video or respond {% highlight javascript %} - myPlayer.exitFullScreen(); + myPlayer.cancelFullScreen(); {% endhighlight %}