API útiles para el Flash Player de Adobe

Última actualización: 2023-09-19

Hay algunas API que pueden ayudarle a utilizar el Flash Player de Adobe.

AdobePSDK.MediaResource

new MediaResource(url, type, metadata, forceFlash)

Si se admite, puede utilizar el complemento forceFlash para anular la secuencia de determinación de la tecnología de reproducción y forzar la implementación para que utilice el Flash Player.

AdobePSDK.PlayerTechnology = {
/**
* Determine the {AdobePSDK.PlayerTechnology} that would be used for the given
* media resource.
* @param {AdobePSDK.MediaResource} mediaResource
* @returns {AdobePSDK.PlayerTechnology.Type}
*/
getSupportedTechnology(mediaResource);
};

AdobePSDK.PlayerTechnology.Type = {
MSE,
VIDEO_TAG,
FLASH,
UNKNOWN
};

/**
* Set the path to the SWF relative to the main html page or using http URL.
* Defaults to the current directory of the html page.
*
* @param swfPath
*/
AdobePSDK.setSWFPath(swfPath);

/**
* Set the path to the folder containing the authorization token(s).
* If not set, defaults to the token folder within the SWFPath: SWFPath + "token/".
* @param authorizationTokenPath
*/
AdobePSDK.setAuthorizationTokenPath(authorizationTokenPath);

/**
* Set the name of the authorization token file. Defaults to "hlsAF_localhost.dat".
* @param authorizationTokenFileName
*/
AdobePSDK.setAuthorizationTokenFilename(authorizationTokenFilename);

/**
* Set the authorization token type, can be "SWF" or "DAT". Defaults to "DAT"
* @param {String} authorizationTokenType
*/
AdobePSDK.setAuthorizationTokenType(authorizationTokenType);

En esta página