| 1808 |
|
|
| 1809 |
// 100%読み込みしたはずなのに読み込み済みバイト数が異常に少ない。 |
// 100%読み込みしたはずなのに読み込み済みバイト数が異常に少ない。 |
| 1810 |
if(this.bytesLoaded <= 64){ |
if(this.bytesLoaded <= 64){ |
| 1811 |
if(this.streamingRetryCount <= 3 ){ |
if(this.streamingRetryCount <= 1 ){ |
| 1812 |
// 再生し直す |
// 再生し直す |
| 1813 |
this.streamingRetryCount++; |
this.streamingRetryCount++; |
| 1814 |
|
var timeStr:String = String(int(10000*this.streamingRetryCount / 1000)); |
| 1815 |
stop(); |
stop(); |
| 1816 |
logManager.addLog("ニコ動へのアクセスの再試行(動画読み込みに失敗:読み込み済みバイト数:" + this.bytesLoaded + ")"); |
logManager.addLog("ニコ動へのアクセスの再試行(動画読み込みに失敗:読み込み済みバイト数:" + this.bytesLoaded + ")"); |
| 1817 |
videoPlayer.label_downloadStatus.text = "動画の読み込みに失敗したため、再試行します。(" + this.streamingRetryCount +"回目 )"; |
videoPlayer.label_downloadStatus.text = "動画の読み込みに失敗したため、再試行します。(" + timeStr + "秒後、" + this.streamingRetryCount +"回目 )"; |
| 1818 |
|
|
| 1819 |
if(nicoVideoAccessRetryTimer != null){ |
if(nicoVideoAccessRetryTimer != null){ |
| 1820 |
nicoVideoAccessRetryTimer.stop(); |
nicoVideoAccessRetryTimer.stop(); |
| 1821 |
nicoVideoAccessRetryTimer = null; |
nicoVideoAccessRetryTimer = null; |
| 1822 |
} |
} |
| 1823 |
nicoVideoAccessRetryTimer = new Timer(5000*this.streamingRetryCount, 1); |
nicoVideoAccessRetryTimer = new Timer(10000*this.streamingRetryCount, 1); |
| 1824 |
nicoVideoAccessRetryTimer.addEventListener(TimerEvent.TIMER_COMPLETE, function(event:Event):void{ |
nicoVideoAccessRetryTimer.addEventListener(TimerEvent.TIMER_COMPLETE, function(event:Event):void{ |
| 1825 |
(event.currentTarget as Timer).stop(); |
(event.currentTarget as Timer).stop(); |
| 1826 |
play(); |
play(); |
| 2908 |
*/ |
*/ |
| 2909 |
private function setNicoVideoPageInfo(videoId:String, delay:int, onlyOwnerText:Boolean = false):void{ |
private function setNicoVideoPageInfo(videoId:String, delay:int, onlyOwnerText:Boolean = false):void{ |
| 2910 |
|
|
| 2911 |
if(retryCount > 5){ |
if(retryCount > 3){ |
| 2912 |
trace("setNicoVideoPageInfoのリトライオーバー"); |
trace("setNicoVideoPageInfoのリトライオーバー"); |
| 2913 |
logManager.addLog("動画ページ詳細情報の取得に失敗(リトライオーバー):" + _videoID); |
logManager.addLog("動画ページ詳細情報の取得に失敗(リトライオーバー):" + _videoID); |
| 2914 |
return; |
return; |