| 70 |
import org.mineap.nndd.util.ThumbInfoAnalyzer; |
import org.mineap.nndd.util.ThumbInfoAnalyzer; |
| 71 |
import org.mineap.nndd.util.ThumbInfoUtil; |
import org.mineap.nndd.util.ThumbInfoUtil; |
| 72 |
import org.mineap.nndd.util.WebServiceAccessUtil; |
import org.mineap.nndd.util.WebServiceAccessUtil; |
| 73 |
|
import org.mineap.util.config.ConfUtil; |
| 74 |
import org.mineap.util.config.ConfigIO; |
import org.mineap.util.config.ConfigIO; |
| 75 |
import org.mineap.util.config.ConfigManager; |
import org.mineap.util.config.ConfigManager; |
| 76 |
import org.osmf.events.LoadEvent; |
import org.osmf.events.LoadEvent; |
| 204 |
|
|
| 205 |
private var lastLoadedBytes:Number = 0; |
private var lastLoadedBytes:Number = 0; |
| 206 |
|
|
| 207 |
|
private var isLengthwisePreferred:Boolean = true; |
| 208 |
|
|
| 209 |
[Embed(source="/player/NNDDicons_play_20x20.png")] |
[Embed(source="/player/NNDDicons_play_20x20.png")] |
| 210 |
private var icon_Play:Class; |
private var icon_Play:Class; |
| 211 |
|
|
| 414 |
|
|
| 415 |
this.videoPlayer.videoController.resetAlpha(true); |
this.videoPlayer.videoController.resetAlpha(true); |
| 416 |
|
|
| 417 |
|
var value:String = ConfigManager.getInstance().getItem("isLengthwisePreferred"); |
| 418 |
|
if (value != null) |
| 419 |
|
{ |
| 420 |
|
this.isLengthwisePreferred = ConfUtil.parseBoolean(value); |
| 421 |
|
} |
| 422 |
|
else |
| 423 |
|
{ |
| 424 |
|
this.isLengthwisePreferred = true; |
| 425 |
|
ConfigManager.getInstance().setItem("isLengthwisePreferred", this.isLengthwisePreferred); |
| 426 |
|
} |
| 427 |
|
|
| 428 |
if(isStreamingPlay){ |
if(isStreamingPlay){ |
| 429 |
if(streamingProgressTimer != null){ |
if(streamingProgressTimer != null){ |
| 430 |
streamingProgressTimer.stop(); |
streamingProgressTimer.stop(); |
| 2190 |
} |
} |
| 2191 |
} |
} |
| 2192 |
|
|
| 2193 |
|
private function updateVideoStatus():void |
| 2194 |
|
{ |
| 2195 |
|
|
| 2196 |
|
var formatter:NumberFormatter = new NumberFormatter(); |
| 2197 |
|
formatter.precision = 2; |
| 2198 |
|
|
| 2199 |
|
if (videoDisplay != null && videoInfoView != null) |
| 2200 |
|
{ |
| 2201 |
|
if (videoDisplay.videoObject != null) |
| 2202 |
|
{ |
| 2203 |
|
videoInfoView.format = videoDisplay.videoObject.videoWidth + " × " + videoDisplay.videoObject.videoHeight; |
| 2204 |
|
} |
| 2205 |
|
else |
| 2206 |
|
{ |
| 2207 |
|
videoInfoView.format = "-"; |
| 2208 |
|
} |
| 2209 |
|
|
| 2210 |
|
videoInfoView.currentWindowSize = videoDisplay.width + " × " + videoDisplay.height; |
| 2211 |
|
|
| 2212 |
|
videoInfoView.videoSize = formatter.format( (videoDisplay.bytesTotal / (1024 * 1024)) ) + " MB"; |
| 2213 |
|
} |
| 2214 |
|
else if (loader != null) |
| 2215 |
|
{ |
| 2216 |
|
if (loader.contentLoaderInfo != null) |
| 2217 |
|
{ |
| 2218 |
|
videoInfoView.format = loader.contentLoaderInfo.width + " × " + loader.contentLoaderInfo.height; |
| 2219 |
|
videoInfoView.currentWindowSize = loader.width + " × " + loader.height; |
| 2220 |
|
videoInfoView.videoSize = formatter.format( (loader.contentLoaderInfo.bytesTotal / (1024 * 1024)) ) + " MB"; |
| 2221 |
|
} |
| 2222 |
|
} |
| 2223 |
|
|
| 2224 |
|
} |
| 2225 |
|
|
| 2226 |
|
|
| 2227 |
/** |
/** |
| 2228 |
* コメント表示用のタイマーです。 |
* コメント表示用のタイマーです。 |
| 2229 |
* swfの再生中はSWFのタイムラインヘッダを更新します。 |
* swfの再生中はSWFのタイムラインヘッダも更新します。 |
| 2230 |
* |
* |
| 2231 |
* @param event |
* @param event |
| 2232 |
* |
* |
| 2244 |
// 音量を反映 |
// 音量を反映 |
| 2245 |
this.setVolume(this.videoPlayer.videoController.slider_volume.value); |
this.setVolume(this.videoPlayer.videoController.slider_volume.value); |
| 2246 |
|
|
| 2247 |
|
this.updateVideoStatus(); |
| 2248 |
|
|
| 2249 |
var nowSec:String="00",nowMin:String="0"; |
var nowSec:String="00",nowMin:String="0"; |
| 2250 |
nowSec = String(int(commentTimerVpos/1000%60)); |
nowSec = String(int(commentTimerVpos/1000%60)); |
| 2251 |
nowMin = String(int(commentTimerVpos/1000/60)); |
nowMin = String(int(commentTimerVpos/1000/60)); |
| 2320 |
} |
} |
| 2321 |
|
|
| 2322 |
//コメントを更新 |
//コメントを更新 |
| 2323 |
var commentArray:Vector.<NNDDComment> = this.commentManager.setComment(commentTimerVpos, (tempTime - this.time)*3, this.videoPlayer.isShowComment); |
var commentArray:Vector.<NNDDComment> = this.commentManager.setComment(commentTimerVpos, (tempTime - this.time)*3, this.videoPlayer.isShowComment, this.isLengthwisePreferred); |
| 2324 |
this.commentManager.moveComment(tempTime/1000 - this.time/1000, videoInfoView.showCommentSec); |
this.commentManager.moveComment(tempTime/1000 - this.time/1000, videoInfoView.showCommentSec); |
| 2325 |
this.commentManager.removeComment(commentTimerVpos, videoInfoView.showCommentSec * 1000); |
this.commentManager.removeComment(commentTimerVpos, videoInfoView.showCommentSec * 1000); |
| 2326 |
this.time = tempTime; |
this.time = tempTime; |
| 3730 |
commentPost.postCommentWithLogin(UserManager.instance.user, UserManager.instance.password, videoID, comment, command, commentTimerVpos/10); |
commentPost.postCommentWithLogin(UserManager.instance.user, UserManager.instance.password, videoID, comment, command, commentTimerVpos/10); |
| 3731 |
|
|
| 3732 |
// とりあえずコメントを表示。通し番号をマイナスにして正規のコメントと区別する。 |
// とりあえずコメントを表示。通し番号をマイナスにして正規のコメントと区別する。 |
| 3733 |
commentManager.addPostComment(new NNDDComment(commentTimerVpos/10, comment, command, "", -1, "", -1, true)); |
commentManager.addPostComment(new NNDDComment(commentTimerVpos/10, comment, command, "", -1, "", -1, true), this.isLengthwisePreferred); |
| 3734 |
|
|
| 3735 |
}else{ |
}else{ |
| 3736 |
//動画IDがついてないのでPostできなかった |
//動画IDがついてないのでPostできなかった |
| 3764 |
videoInfoView.economyMode = "-"; |
videoInfoView.economyMode = "-"; |
| 3765 |
videoInfoView.nickName = "-"; |
videoInfoView.nickName = "-"; |
| 3766 |
videoInfoView.isPremium = "-"; |
videoInfoView.isPremium = "-"; |
| 3767 |
|
videoInfoView.format = "-"; |
| 3768 |
|
videoInfoView.videoSize = "-"; |
| 3769 |
|
videoInfoView.currentWindowSize = "-"; |
| 3770 |
|
|
| 3771 |
setVideoDeleted(false); |
setVideoDeleted(false); |
| 3772 |
} |
} |
| 4217 |
videoInfoView.economyMode = String(downloader.getFlvResultAnalyzer.economyMode); |
videoInfoView.economyMode = String(downloader.getFlvResultAnalyzer.economyMode); |
| 4218 |
videoInfoView.nickName = downloader.getFlvResultAnalyzer.nickName; |
videoInfoView.nickName = downloader.getFlvResultAnalyzer.nickName; |
| 4219 |
videoInfoView.isPremium = String(downloader.getFlvResultAnalyzer.isPremium); |
videoInfoView.isPremium = String(downloader.getFlvResultAnalyzer.isPremium); |
| 4220 |
|
|
| 4221 |
} |
} |
| 4222 |
} |
} |
| 4223 |
|
|