| 2744 |
}else{ |
}else{ |
| 2745 |
if(video != null && video.pubDate == null){ |
if(video != null && video.pubDate == null){ |
| 2746 |
video.pubDate = analyzer.getDateByFirst_retrieve(); |
video.pubDate = analyzer.getDateByFirst_retrieve(); |
| 2747 |
|
video.time = DateUtil.getTimeForThumbXML(analyzer.length); |
| 2748 |
libraryManager.update(video, false); |
libraryManager.update(video, false); |
| 2749 |
} |
} |
| 2750 |
} |
} |
| 2914 |
} |
} |
| 2915 |
video.tagStrings = tagStrings; |
video.tagStrings = tagStrings; |
| 2916 |
video.pubDate = thumbInfoAnalyzer.getDateByFirst_retrieve(); |
video.pubDate = thumbInfoAnalyzer.getDateByFirst_retrieve(); |
| 2917 |
|
video.time = DateUtil.getTimeForThumbXML(thumbInfoAnalyzer.length); |
| 2918 |
//再生に時間がかかるのでライブラリの更新はしない |
//再生に時間がかかるのでライブラリの更新はしない |
| 2919 |
libraryManager.update(video, false); |
libraryManager.update(video, false); |
| 2920 |
} |
} |
| 3387 |
//ファイルが存在して、動画も存在するなら動画のURLを更新しておく |
//ファイルが存在して、動画も存在するなら動画のURLを更新しておく |
| 3388 |
video.uri = file.url; |
video.uri = file.url; |
| 3389 |
video.thumbUrl = PathMaker.createThumbImgFilePath(file.url, true); |
video.thumbUrl = PathMaker.createThumbImgFilePath(file.url, true); |
| 3390 |
|
|
| 3391 |
|
//動画の時間が0ならサムネイル情報を見に行って更新する |
| 3392 |
|
if(video.time == 0){ |
| 3393 |
|
var tempVideo:NNDDVideo = new LocalVideoInfoLoader().loadInfo(decodeURIComponent(file.url)); |
| 3394 |
|
if(tempVideo != null){ |
| 3395 |
|
video.time = tempVideo.time; |
| 3396 |
|
} |
| 3397 |
|
} |
| 3398 |
libraryManager.update(video, false); |
libraryManager.update(video, false); |
| 3399 |
} |
} |
| 3400 |
url = video.getDecodeUrl(); |
url = video.getDecodeUrl(); |
| 3405 |
}else{ |
}else{ |
| 3406 |
if(file.exists){ |
if(file.exists){ |
| 3407 |
//ファイルが存在して、動画が存在しないなら新しく登録 |
//ファイルが存在して、動画が存在しないなら新しく登録 |
| 3408 |
video = new NNDDVideo(file.url, file.name); |
video = new LocalVideoInfoLoader().loadInfo(decodeURIComponent(file.url)); |
| 3409 |
|
if(video == null){ |
| 3410 |
|
video = new NNDDVideo(file.url, file.name); |
| 3411 |
|
} |
| 3412 |
libraryManager.add(video, false); |
libraryManager.add(video, false); |
| 3413 |
logManager.addLog("動画を管理対象に追加:" + file.nativePath); |
logManager.addLog("動画を管理対象に追加:" + file.nativePath); |
| 3414 |
} |
} |
| 3515 |
nnddDownloaderForStreaming = null; |
nnddDownloaderForStreaming = null; |
| 3516 |
} |
} |
| 3517 |
|
|
| 3518 |
nnddDownloaderForStreaming = new NNDDDownloader(LogManager.instance); |
nnddDownloaderForStreaming = new NNDDDownloader(); |
| 3519 |
nnddDownloaderForStreaming.addEventListener(NNDDDownloader.DOWNLOAD_PROCESS_COMPLETE, function(event:Event):void{ |
nnddDownloaderForStreaming.addEventListener(NNDDDownloader.DOWNLOAD_PROCESS_COMPLETE, function(event:Event):void{ |
| 3520 |
playMovie((event.target as NNDDDownloader).streamingUrl, playList, playListIndex, (event.target as NNDDDownloader).nicoVideoName, nnddDownloaderForStreaming.isEconomyMode); |
playMovie((event.target as NNDDDownloader).streamingUrl, playList, playListIndex, (event.target as NNDDDownloader).nicoVideoName, nnddDownloaderForStreaming.isEconomyMode); |
| 3521 |
removeStreamingPlayHandler(event); |
removeStreamingPlayHandler(event); |