Changing the font color
Change the font color for the text element named "Text1" on the current page.
<html>
<head>
<script src="wplayer-api.1.0.0.js"></script>
<script>
const contentPropertyType = $wp.content.getPropertyType();
$wp.content.getPage().getElement('Text1').setProperty(contentPropertyType.FONTCOLOR,"rgba(255, 0, 0, 1)");
</script>
</head>
</html>