| 1455 |
|
|
| 1456 |
|
|
| 1457 |
/** |
/** |
| 1458 |
|
* 動画の読み込みを中止せずにシーク場所を先頭に戻します。 |
| 1459 |
|
* |
| 1460 |
|
*/ |
| 1461 |
|
public function goToTop():void |
| 1462 |
|
{ |
| 1463 |
|
try{ |
| 1464 |
|
|
| 1465 |
|
pausing = false; |
| 1466 |
|
|
| 1467 |
|
if(videoInfoView.isShowAlwaysNicowariArea){ |
| 1468 |
|
videoPlayer.showNicowariArea(); |
| 1469 |
|
}else{ |
| 1470 |
|
videoPlayer.hideNicowariArea(); |
| 1471 |
|
} |
| 1472 |
|
|
| 1473 |
|
if(videoPlayer != null && videoPlayer.label_downloadStatus != null){ |
| 1474 |
|
videoPlayer.canvas_video_back.setFocus(); |
| 1475 |
|
videoPlayer.label_downloadStatus.text = ""; |
| 1476 |
|
videoPlayer.canvas_video.toolTip = "ここに動画ファイルをドロップすると動画を再生できます。"; |
| 1477 |
|
} |
| 1478 |
|
|
| 1479 |
|
if(this.movieEndTimer != null){ |
| 1480 |
|
this.movieEndTimer.stop(); |
| 1481 |
|
this.movieEndTimer = null; |
| 1482 |
|
} |
| 1483 |
|
|
| 1484 |
|
if(renewDownloadManager != null){ |
| 1485 |
|
try{ |
| 1486 |
|
renewDownloadManager.close(); |
| 1487 |
|
renewDownloadManager = null; |
| 1488 |
|
logManager.addLog("再生前の情報更新をキャンセルしました。"); |
| 1489 |
|
}catch(error:Error){ |
| 1490 |
|
trace(error); |
| 1491 |
|
} |
| 1492 |
|
}else{ |
| 1493 |
|
|
| 1494 |
|
this.videoPlayer.videoController.button_play.enabled = true; |
| 1495 |
|
this.videoPlayer.videoController_under.button_play.enabled = true; |
| 1496 |
|
videoPlayer.videoController.button_play.setStyle("icon", icon_Play); |
| 1497 |
|
videoPlayer.videoController_under.button_play.setStyle("icon", icon_Play); |
| 1498 |
|
|
| 1499 |
|
this.videoPlayer.videoController_under.slider_timeline.value = 0; |
| 1500 |
|
this.videoPlayer.videoController.slider_timeline.value = 0; |
| 1501 |
|
|
| 1502 |
|
this.commentTimerVpos = 0; |
| 1503 |
|
this.commentTimer.stop(); |
| 1504 |
|
this.commentTimer.reset(); |
| 1505 |
|
|
| 1506 |
|
var playing:Boolean = false; |
| 1507 |
|
if(this.windowType == PlayerController.WINDOW_TYPE_FLV){ |
| 1508 |
|
if(videoDisplay != null && videoDisplay.playing){ |
| 1509 |
|
playing = true; |
| 1510 |
|
} |
| 1511 |
|
}else if(this.windowType == PlayerController.WINDOW_TYPE_SWF){ |
| 1512 |
|
if(isMovieClipPlaying){ |
| 1513 |
|
playing = true; |
| 1514 |
|
} |
| 1515 |
|
} |
| 1516 |
|
|
| 1517 |
|
if(playing){ |
| 1518 |
|
this.play(); |
| 1519 |
|
} |
| 1520 |
|
this.seek(0); |
| 1521 |
|
|
| 1522 |
|
|
| 1523 |
|
//終了時にニコ割が鳴っていたら止める。 |
| 1524 |
|
videoPlayer.canvas_nicowari.removeAllChildren(); |
| 1525 |
|
if(nicowariMC != null){ |
| 1526 |
|
this.pauseByNicowari(true); |
| 1527 |
|
} |
| 1528 |
|
|
| 1529 |
|
} |
| 1530 |
|
|
| 1531 |
|
}catch(error:Error){ |
| 1532 |
|
trace(error.getStackTrace()); |
| 1533 |
|
logManager.addLog("停止中にエラーが発生しました:" + error + ":" + error.getStackTrace()); |
| 1534 |
|
} |
| 1535 |
|
} |
| 1536 |
|
|
| 1537 |
|
/** |
| 1538 |
* VideoDisplayに関連するリスナをまとめて登録します。 |
* VideoDisplayに関連するリスナをまとめて登録します。 |
| 1539 |
* @param videoDisplay |
* @param videoDisplay |
| 1540 |
* |
* |
| 2347 |
} |
} |
| 2348 |
|
|
| 2349 |
/** |
/** |
| 2350 |
|
* |
| 2351 |
|
* @param url |
| 2352 |
|
* |
| 2353 |
|
*/ |
| 2354 |
|
public function reload(url:String):void |
| 2355 |
|
{ |
| 2356 |
|
|
| 2357 |
|
stop(); |
| 2358 |
|
|
| 2359 |
|
playMovie(url); |
| 2360 |
|
|
| 2361 |
|
} |
| 2362 |
|
|
| 2363 |
|
/** |
| 2364 |
* 現状のNGリストを書き出します。 |
* 現状のNGリストを書き出します。 |
| 2365 |
* |
* |
| 2366 |
*/ |
*/ |