| 849 |
|
|
| 850 |
libraryManager.update(video, false); |
libraryManager.update(video, false); |
| 851 |
|
|
| 852 |
|
|
| 853 |
|
var videoMin:int = video.time / 60; |
| 854 |
|
++videoMin; |
| 855 |
|
|
| 856 |
var commentPath:String = PathMaker.createNomalCommentPathByVideoPath(video.getDecodeUrl()); |
var commentPath:String = PathMaker.createNomalCommentPathByVideoPath(video.getDecodeUrl()); |
| 857 |
var ownerCommentPath:String = PathMaker.createOwnerCommentPathByVideoPath(video.getDecodeUrl()); |
var ownerCommentPath:String = PathMaker.createOwnerCommentPathByVideoPath(video.getDecodeUrl()); |
| 858 |
comments = new Comments(commentPath, ownerCommentPath, getCommentListProvider(), getOwnerCommentListProvider(), |
comments = new Comments(commentPath, |
| 859 |
ngListManager, videoInfoView.isShowOnlyPermissionComment, videoInfoView.isHideSekaShinComment, |
ownerCommentPath, |
| 860 |
videoInfoView.showCommentCount, videoInfoView.isNgUpEnable); |
getCommentListProvider(), |
| 861 |
|
getOwnerCommentListProvider(), |
| 862 |
|
ngListManager, |
| 863 |
|
videoInfoView.isShowOnlyPermissionComment, |
| 864 |
|
videoInfoView.isHideSekaShinComment, |
| 865 |
|
videoInfoView.showCommentCountPerMin * videoMin, |
| 866 |
|
videoInfoView.showOwnerCommentCountPerMin * videoMin, |
| 867 |
|
videoInfoView.isNgUpEnable); |
| 868 |
|
|
| 869 |
renewDownloadManager = null; |
renewDownloadManager = null; |
| 870 |
|
|
| 1416 |
}else{ |
}else{ |
| 1417 |
this.videoPlayer.videoController.slider_timeline.enabled = true; |
this.videoPlayer.videoController.slider_timeline.enabled = true; |
| 1418 |
this.videoPlayer.videoController_under.slider_timeline.enabled = true; |
this.videoPlayer.videoController_under.slider_timeline.enabled = true; |
| 1419 |
if(!isStreamingPlay){ |
this.playMovie(source, null, -1, this.downLoadedURL); |
|
newComments = new Comments(PathMaker.createNomalCommentPathByVideoPath(source), |
|
|
PathMaker.createOwnerCommentPathByVideoPath(source), this.videoPlayer.getCommentListProvider(), |
|
|
this.videoPlayer.videoInfoView.ownerCommentProvider, this.ngListManager, |
|
|
this.videoInfoView.isShowOnlyPermissionComment, this.videoInfoView.isHideSekaShinComment, |
|
|
this.videoInfoView.showCommentCount, this.videoInfoView.isNgUpEnable); |
|
|
init(source, PlayerController.WINDOW_TYPE_FLV, newComments, PathMaker.createThmbInfoPathByVideoPath(source), true, isStreamingPlay, null, this.isPlayListingPlay, this._videoID); |
|
|
}else{ |
|
|
this.playMovie(source, null, -1, this.downLoadedURL); |
|
|
} |
|
| 1420 |
} |
} |
| 1421 |
pausing = false; |
pausing = false; |
| 1422 |
} |
} |
| 1443 |
this.videoPlayer.canvas_video.removeAllChildren(); |
this.videoPlayer.canvas_video.removeAllChildren(); |
| 1444 |
this.videoPlayer.videoController.slider_timeline.enabled = true; |
this.videoPlayer.videoController.slider_timeline.enabled = true; |
| 1445 |
this.videoPlayer.videoController_under.slider_timeline.enabled = true; |
this.videoPlayer.videoController_under.slider_timeline.enabled = true; |
| 1446 |
if(!isStreamingPlay){ |
this.playMovie(source, null, -1, this.downLoadedURL); |
| 1447 |
newComments = new Comments(PathMaker.createNomalCommentPathByVideoPath(source), |
|
|
PathMaker.createOwnerCommentPathByVideoPath(source), this.videoPlayer.getCommentListProvider(), |
|
|
this.videoPlayer.videoInfoView.ownerCommentProvider, this.ngListManager, |
|
|
this.videoInfoView.isShowOnlyPermissionComment, this.videoInfoView.isHideSekaShinComment, |
|
|
this.videoInfoView.showCommentCount, this.videoInfoView.isNgUpEnable); |
|
|
init(source, PlayerController.WINDOW_TYPE_SWF, newComments, PathMaker.createThmbInfoPathByVideoPath(source), true, isStreamingPlay, null, this.isPlayListingPlay, this._videoID); |
|
|
}else{ |
|
|
this.playMovie(source, null, -1, this.downLoadedURL); |
|
|
} |
|
| 1448 |
} |
} |
| 1449 |
pausing = false; |
pausing = false; |
| 1450 |
} |
} |
| 2472 |
} |
} |
| 2473 |
|
|
| 2474 |
if(this.videoInfoView.ngListProvider != null){ |
if(this.videoInfoView.ngListProvider != null){ |
| 2475 |
|
|
| 2476 |
|
var videoMin:int = 1; |
| 2477 |
|
if(this.windowType==PlayerController.WINDOW_TYPE_SWF && this.mc != null){ |
| 2478 |
|
videoMin = mc.totalFrames/swfFrameRate/60 |
| 2479 |
|
}else if(this.windowType==PlayerController.WINDOW_TYPE_FLV && this.videoDisplay != null){ |
| 2480 |
|
videoMin = videoDisplay.duration/60; |
| 2481 |
|
} |
| 2482 |
|
++videoMin; |
| 2483 |
|
|
| 2484 |
if(!this.isStreamingPlay && this.source != null && this.source != "" ){ |
if(!this.isStreamingPlay && this.source != null && this.source != "" ){ |
| 2485 |
comments = new Comments(PathMaker.createNomalCommentPathByVideoPath(source), |
comments = new Comments( |
| 2486 |
PathMaker.createOwnerCommentPathByVideoPath(source), videoPlayer.getCommentListProvider(), |
PathMaker.createNomalCommentPathByVideoPath(source), |
| 2487 |
this.videoPlayer.videoInfoView.ownerCommentProvider, this.ngListManager, |
PathMaker.createOwnerCommentPathByVideoPath(source), |
| 2488 |
this.videoInfoView.isShowOnlyPermissionComment, this.videoInfoView.isHideSekaShinComment, |
this.videoPlayer.getCommentListProvider(), |
| 2489 |
this.videoInfoView.showCommentCount, this.videoInfoView.isNgUpEnable, date); |
this.videoPlayer.videoInfoView.ownerCommentProvider, |
| 2490 |
|
this.ngListManager, |
| 2491 |
|
this.videoInfoView.isShowOnlyPermissionComment, |
| 2492 |
|
this.videoInfoView.isHideSekaShinComment, |
| 2493 |
|
this.videoInfoView.showCommentCountPerMin * videoMin, |
| 2494 |
|
this.videoInfoView.showOwnerCommentCountPerMin * videoMin, |
| 2495 |
|
this.videoInfoView.isNgUpEnable, date); |
| 2496 |
}else if(this.isStreamingPlay){ |
}else if(this.isStreamingPlay){ |
| 2497 |
comments = new Comments(PathMaker.createNomalCommentPathByVideoPath(LibraryManagerBuilder.instance.libraryManager.tempDir.url + "/nndd.flv"), |
comments = new Comments( |
| 2498 |
|
PathMaker.createNomalCommentPathByVideoPath(LibraryManagerBuilder.instance.libraryManager.tempDir.url + "/nndd.flv"), |
| 2499 |
PathMaker.createOwnerCommentPathByVideoPath(LibraryManagerBuilder.instance.libraryManager.tempDir.url + "/nndd.flv"), |
PathMaker.createOwnerCommentPathByVideoPath(LibraryManagerBuilder.instance.libraryManager.tempDir.url + "/nndd.flv"), |
| 2500 |
this.videoPlayer.getCommentListProvider(), this.videoPlayer.videoInfoView.ownerCommentProvider, |
this.videoPlayer.getCommentListProvider(), |
| 2501 |
this.ngListManager, videoInfoView.isShowOnlyPermissionComment, this.videoInfoView.isHideSekaShinComment, |
this.videoPlayer.videoInfoView.ownerCommentProvider, |
| 2502 |
this.videoInfoView.showCommentCount, this.videoInfoView.isNgUpEnable, date); |
this.ngListManager, |
| 2503 |
|
this.videoInfoView.isShowOnlyPermissionComment, |
| 2504 |
|
this.videoInfoView.isHideSekaShinComment, |
| 2505 |
|
this.videoInfoView.showCommentCountPerMin * videoMin, |
| 2506 |
|
this.videoInfoView.showOwnerCommentCountPerMin * videoMin, |
| 2507 |
|
this.videoInfoView.isNgUpEnable, date); |
| 2508 |
} |
} |
| 2509 |
commentManager.setComments(comments); |
commentManager.setComments(comments); |
| 2510 |
} |
} |
| 3396 |
// var commentPost:CommentPost = new CommentPost(); |
// var commentPost:CommentPost = new CommentPost(); |
| 3397 |
// commentPost.postComment(videoID, command, postMessage, commentTimerVpos/10); |
// commentPost.postComment(videoID, command, postMessage, commentTimerVpos/10); |
| 3398 |
|
|
|
|
|
| 3399 |
var a2n:Access2Nico = new Access2Nico(null, null, this, logManager, null); |
var a2n:Access2Nico = new Access2Nico(null, null, this, logManager, null); |
| 3400 |
a2n.addEventListener(Access2Nico.NICO_POST_COMMENT_COMPLETE, function():void{ |
a2n.addEventListener(Access2Nico.NICO_POST_COMMENT_COMPLETE, function():void{ |
| 3401 |
var post:XML = a2n.getPostComment(); |
var post:XML = a2n.getPostComment(); |
| 3494 |
|
|
| 3495 |
var videoId:String = LibraryUtil.getVideoKey(decodeURIComponent(file.url)); |
var videoId:String = LibraryUtil.getVideoKey(decodeURIComponent(file.url)); |
| 3496 |
var videoTitle:String = videoId; |
var videoTitle:String = videoId; |
| 3497 |
|
var videoMin:int = 5; |
| 3498 |
|
|
| 3499 |
if(videoId != null){ |
if(videoId != null){ |
| 3500 |
var video:NNDDVideo = null; |
var video:NNDDVideo = null; |
| 3501 |
|
|
| 3514 |
video.time = tempVideo.time; |
video.time = tempVideo.time; |
| 3515 |
} |
} |
| 3516 |
} |
} |
| 3517 |
|
videoMin = video.time / 60; |
| 3518 |
|
++videoMin; |
| 3519 |
|
|
| 3520 |
libraryManager.update(video, false); |
libraryManager.update(video, false); |
| 3521 |
} |
} |
| 3522 |
url = video.getDecodeUrl(); |
url = video.getDecodeUrl(); |
| 3531 |
if(video == null){ |
if(video == null){ |
| 3532 |
video = new NNDDVideo(file.url, file.name); |
video = new NNDDVideo(file.url, file.name); |
| 3533 |
} |
} |
| 3534 |
|
|
| 3535 |
|
videoMin = video.time / 60; |
| 3536 |
|
++videoMin; |
| 3537 |
|
|
| 3538 |
libraryManager.add(video, false); |
libraryManager.add(video, false); |
| 3539 |
logManager.addLog("動画を管理対象に追加:" + file.nativePath); |
logManager.addLog("動画を管理対象に追加:" + file.nativePath); |
| 3540 |
} |
} |
| 3550 |
|
|
| 3551 |
var commentPath:String = PathMaker.createNomalCommentPathByVideoPath(url); |
var commentPath:String = PathMaker.createNomalCommentPathByVideoPath(url); |
| 3552 |
var ownerCommentPath:String = PathMaker.createOwnerCommentPathByVideoPath(url); |
var ownerCommentPath:String = PathMaker.createOwnerCommentPathByVideoPath(url); |
| 3553 |
var comments:Comments = new Comments(commentPath, ownerCommentPath, this.getCommentListProvider(), |
var comments:Comments = new Comments( |
| 3554 |
this.getOwnerCommentListProvider(), this.ngListManager, this.videoInfoView.isShowOnlyPermissionComment, |
commentPath, |
| 3555 |
this.videoInfoView.isHideSekaShinComment, this.videoInfoView.showCommentCount, this.videoInfoView.isNgUpEnable); |
ownerCommentPath, |
| 3556 |
|
this.getCommentListProvider(), |
| 3557 |
|
this.getOwnerCommentListProvider(), |
| 3558 |
|
this.ngListManager, |
| 3559 |
|
this.videoInfoView.isShowOnlyPermissionComment, |
| 3560 |
|
this.videoInfoView.isHideSekaShinComment, |
| 3561 |
|
this.videoInfoView.showCommentCountPerMin * videoMin, |
| 3562 |
|
this.videoInfoView.showOwnerCommentCountPerMin * videoMin, |
| 3563 |
|
this.videoInfoView.isNgUpEnable); |
| 3564 |
|
|
| 3565 |
if(url.indexOf(".swf") != -1 || url.indexOf(".SWF") != -1){ |
if(url.indexOf(".swf") != -1 || url.indexOf(".SWF") != -1){ |
| 3566 |
if(playList != null && playListIndex != -1){ |
if(playList != null && playListIndex != -1){ |
| 3567 |
this.initWithPlayList(url, PlayerController.WINDOW_TYPE_SWF, comments, urlArray, videoNameArray, playListName, playListIndex, true, false, null, videoTitle); |
this.initWithPlayList(url, PlayerController.WINDOW_TYPE_SWF, comments, urlArray, videoNameArray, playListName, playListIndex, true, false, null, videoTitle); |
| 3582 |
|
|
| 3583 |
var commentPath:String = libraryManager.tempDir.url + "/nndd.xml"; |
var commentPath:String = libraryManager.tempDir.url + "/nndd.xml"; |
| 3584 |
var ownerCommentPath:String = libraryManager.tempDir.url + "/nndd[Owner].xml"; |
var ownerCommentPath:String = libraryManager.tempDir.url + "/nndd[Owner].xml"; |
| 3585 |
var comments:Comments = new Comments(commentPath, ownerCommentPath, this.getCommentListProvider(), |
|
| 3586 |
this.getOwnerCommentListProvider(), this.ngListManager, this.videoInfoView.isShowOnlyPermissionComment, |
var loader:LocalVideoInfoLoader = new LocalVideoInfoLoader(); |
| 3587 |
this.videoInfoView.isHideSekaShinComment, this.videoInfoView.showCommentCount, this.videoInfoView.isNgUpEnable); |
var video:NNDDVideo = loader.loadInfo(libraryManager.tempDir.resolvePath("nndd.flv").nativePath); |
| 3588 |
|
videoMin = 5; |
| 3589 |
|
if(video != null){ |
| 3590 |
|
videoMin = video.time/60; |
| 3591 |
|
++videoMin; |
| 3592 |
|
} |
| 3593 |
|
|
| 3594 |
|
var comments:Comments = new Comments( |
| 3595 |
|
commentPath, |
| 3596 |
|
ownerCommentPath, |
| 3597 |
|
this.getCommentListProvider(), |
| 3598 |
|
this.getOwnerCommentListProvider(), |
| 3599 |
|
this.ngListManager, |
| 3600 |
|
this.videoInfoView.isShowOnlyPermissionComment, |
| 3601 |
|
this.videoInfoView.isHideSekaShinComment, |
| 3602 |
|
this.videoInfoView.showCommentCountPerMin * videoMin, |
| 3603 |
|
this.videoInfoView.showOwnerCommentCountPerMin * videoMin, |
| 3604 |
|
this.videoInfoView.isNgUpEnable); |
| 3605 |
|
|
| 3606 |
videoPlayer.label_downloadStatus.text = ""; |
videoPlayer.label_downloadStatus.text = ""; |
| 3607 |
|
|