Develop and Download Open Source Software

Browse Subversion Repository

Diff of /NNDDv2/trunk/src/org/mineap/nndd/player/PlayerController.as

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 484 by mineap, Sat Apr 2 12:13:46 2011 UTC revision 485 by mineap, Fri Apr 8 16:45:43 2011 UTC
# Line 2744  package org.mineap.nndd.player Line 2744  package org.mineap.nndd.player
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                                                                  }                                                                  }
# Line 2913  package org.mineap.nndd.player Line 2914  package org.mineap.nndd.player
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                                                  }                                                  }
# Line 3385  package org.mineap.nndd.player Line 3387  package org.mineap.nndd.player
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();
# Line 3395  package org.mineap.nndd.player Line 3405  package org.mineap.nndd.player
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                                                          }                                                          }
# Line 3502  package org.mineap.nndd.player Line 3515  package org.mineap.nndd.player
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);

Legend:
Removed from v.484  
changed lines
  Added in v.485

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26