Brightcove Smart Player API - hide search controls

I am updating another user’s code from the API interface for the Smart Player API flash interface only, and I have time trying to figure out how to hide the search controls on any of the players (both flash and HTML5 versions).

The old code that works is as follows:

exp = player.getModule(APIModules.EXPERIENCE);
phead = exp.getElementByID("playhead");
phead.setVisible(false);

The new code I tried to translate is as follows:

BCL.experience = BCL.player.getModule(BCL.APIModules.EXPERIENCE);
BCL.experience.getElementByID('playhead').setVisible(false);

The error is that there is no getElementByID method, and I confirmed that it does not look like a typical DOM object with my console. Does anyone know how I can hide or disable search controls on flash and html5 player?

I have a complete loss for how this is done, and I feel like I have read every page of my API documentation without success.

+4

Source: https://habr.com/ru/post/1536187/


All Articles