Commit 8c278145 by Masaru Abe

暗号化エラー対応

parent f6096c20
...@@ -405,31 +405,29 @@ CONTENTVIEW_FILESYSTEM.createMovieCache = function(resourceUrl, fileName) { ...@@ -405,31 +405,29 @@ CONTENTVIEW_FILESYSTEM.createMovieCache = function(resourceUrl, fileName) {
CONTENTVIEW_FILESYSTEM.errorHandler CONTENTVIEW_FILESYSTEM.errorHandler
); );
} }
} else if( this.readyState == 2 ){ }else if(this.readyState == 2){
AVWEB.avwLog("onreadystatechange:" + this.readyState + " " + this.status); AVWEB.avwLog("onreadystatechange:" + this.readyState + " " + this.status);
downloadSize = xhr.getResponseHeader('Content-Length'); downloadSize = xhr.getResponseHeader('Content-Length');
AVWEB.avwLog("Content-Length:" + downloadSize); AVWEB.avwLog("Content-Length:" + downloadSize);
AVWEB.avwLog("Cachelimit:" + AVWEB.avwSysSetting().movieCacheLimitMB); AVWEB.avwLog("Cachelimit:" + AVWEB.avwSysSetting().movieCacheLimitMB);
//制限値チェック //制限値チェック
if( AVWEB.avwSysSetting().movieCacheLimitMB == 0 ){ if( AVWEB.avwSysSetting().movieCacheLimitMB == 0 ){
//無制限 //無制限
CONTENTVIEW_FILESYSTEM.isXhrBusy = true; CONTENTVIEW_FILESYSTEM.isXhrBusy = true;
} else {
//制限有り
if( downloadSize && downloadSize > AVWEB.avwSysSetting().movieCacheLimitMB * COMMON.MB_BYTE ){
AVWEB.avwLog("CacheLimit abort");
xhr.abort();
} else { } else {
//制限有り CONTENTVIEW_FILESYSTEM.isXhrBusy = true;
if( downloadSize && downloadSize > AVWEB.avwSysSetting().movieCacheLimitMB * COMMON.MB_BYTE ){
AVWEB.avwLog("CacheLimit abort");
xhr.abort();
} else {
CONTENTVIEW_FILESYSTEM.isXhrBusy = true;
}
}
if(CONTENTVIEW_FILESYSTEM.isXhrBusy){
$('#divCacheLoading').css('z-index', '99999');
$('#divCacheLoading').css('display', 'block');
} }
}
if(CONTENTVIEW_FILESYSTEM.isXhrBusy){
$('#divCacheLoading').css('z-index', '99999');
$('#divCacheLoading').css('display', 'block');
} }
//AVWEB.avwLog("onreadystatechange:" + this.readyState + " " + this.status); //AVWEB.avwLog("onreadystatechange:" + this.readyState + " " + this.status);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment