要使用Flash Player,請確保您的環境符合必要的要求。
以下是Flash Player的要求:
Primetime.js
,請至少安裝Flash Player23版。使用Flash Player播放需要下列SWF檔案:
playerProductInstall.swf
SWF檔案。此外,Flash中的視訊播放需要授權Token檔案,該檔案可能是SWF或.DAT
檔案。 SWF檔案的路徑、授權Token檔案,以及Token檔案名稱和類型,都可使用AdobePSDK API來指定。
例如:
// Set relative or http path to directory containing SWF.
// Defaults to current directory for the html page.
AdobePSDK.setSWFPath(<swfPath>);
// Set the relative or http path to directory containing token file(s).
// Defaults to SWFPath + "token/".
AdobePSDK.setAuthorizationTokenPath(<authorizationTokenPath>);
// Set the name of the token file, do not include any path in this string.
AdobePSDK.setAuthorizationTokenFilename("hlsaf_localhost.swf");
//Set the token type, "DAT" or "SWF". Defaults to "DAT"
AdobePSDK.setAuthorizationTokenType("SWF");