| 56 |
import org.mineap.nndd.model.NNDDComment; |
import org.mineap.nndd.model.NNDDComment; |
| 57 |
import org.mineap.nndd.model.NNDDVideo; |
import org.mineap.nndd.model.NNDDVideo; |
| 58 |
import org.mineap.nndd.model.PlayList; |
import org.mineap.nndd.model.PlayList; |
| 59 |
|
import org.mineap.nndd.myList.MyListManager; |
| 60 |
import org.mineap.nndd.playList.PlayListManager; |
import org.mineap.nndd.playList.PlayListManager; |
| 61 |
import org.mineap.nndd.player.comment.Command; |
import org.mineap.nndd.player.comment.Command; |
| 62 |
import org.mineap.nndd.player.comment.CommentManager; |
import org.mineap.nndd.player.comment.CommentManager; |
| 3586 |
if(videoID != null){ |
if(videoID != null){ |
| 3587 |
|
|
| 3588 |
var commentPost:CommentPost = new CommentPost(); |
var commentPost:CommentPost = new CommentPost(); |
| 3589 |
|
commentPost.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, function(event:HTTPStatusEvent):void |
| 3590 |
|
{ |
| 3591 |
|
logManager.addLog("\t\t" + event); |
| 3592 |
|
}); |
| 3593 |
commentPost.addEventListener(CommentPost.COMMENT_POST_FAIL, function(event:IOErrorEvent):void |
commentPost.addEventListener(CommentPost.COMMENT_POST_FAIL, function(event:IOErrorEvent):void |
| 3594 |
{ |
{ |
| 3595 |
trace(event); |
trace(event); |
| 3596 |
logManager.addLog("\t\t" + CommentPost.COMMENT_POST_FAIL + ":" + event); |
logManager.addLog("\t\t" + CommentPost.COMMENT_POST_FAIL + ":" + event); |
| 3597 |
logManager.addLog("コメント投稿失敗"); |
logManager.addLog("コメント投稿失敗"); |
| 3598 |
Alert.show("コメントの投稿に失敗", Message.M_ERROR); |
Alert.show("コメントの投稿に失敗\n\n" + event.text, Message.M_ERROR); |
| 3599 |
commentPost.close(); |
commentPost.close(); |
| 3600 |
}); |
}); |
| 3601 |
commentPost.addEventListener(CommentPost.COMMENT_POST_SUCCESS, function():void{ |
commentPost.addEventListener(CommentPost.COMMENT_POST_SUCCESS, function():void{ |
| 3604 |
var path:String = PathMaker.createNomalCommentPathByVideoPath(source); |
var path:String = PathMaker.createNomalCommentPathByVideoPath(source); |
| 3605 |
(new FileIO(logManager)).addComment(path, post); |
(new FileIO(logManager)).addComment(path, post); |
| 3606 |
} |
} |
| 3607 |
trace('コメントを投稿:' + videoID); |
trace("コメントを投稿:" + videoID); |
| 3608 |
|
logManager.addLog("\t\tコメントを投稿:" + videoID); |
| 3609 |
logManager.addLog("***コメント投稿完了***"); |
logManager.addLog("***コメント投稿完了***"); |
| 3610 |
commentPost.close(); |
commentPost.close(); |
| 3611 |
}); |
}); |
| 3681 |
|
|
| 3682 |
url = decodeURIComponent(url); |
url = decodeURIComponent(url); |
| 3683 |
|
|
| 3684 |
|
setPlayed(PathMaker.getVideoID(url)); |
| 3685 |
|
|
| 3686 |
if(url.indexOf("http://") == -1){ |
if(url.indexOf("http://") == -1){ |
| 3687 |
/* ---- ローカルの動画を再生 ---- */ |
/* ---- ローカルの動画を再生 ---- */ |
| 3688 |
|
|
| 4354 |
} |
} |
| 4355 |
} |
} |
| 4356 |
} |
} |
| 4357 |
|
|
| 4358 |
|
/** |
| 4359 |
|
* 指定された動画がローカルのマイリストに存在する場合、マイリストの動画を既読に設定します。 |
| 4360 |
|
* @param videoId |
| 4361 |
|
* |
| 4362 |
|
*/ |
| 4363 |
|
public function setPlayed(videoId:String):void |
| 4364 |
|
{ |
| 4365 |
|
// マイリストの既読設定 |
| 4366 |
|
if(videoId == null){ |
| 4367 |
|
return; |
| 4368 |
|
} |
| 4369 |
|
|
| 4370 |
|
var myListIds:Vector.<String> = MyListManager.instance.searchMyList(videoId); |
| 4371 |
|
if(myListIds != null && myListIds.length > 0) |
| 4372 |
|
{ |
| 4373 |
|
for each(var myListId:String in myListIds) |
| 4374 |
|
{ |
| 4375 |
|
var videoIds:Vector.<String> = new Vector.<String>(); |
| 4376 |
|
videoIds.push(videoId); |
| 4377 |
|
MyListManager.instance.setPlayedAndSave(myListId, videoIds); |
| 4378 |
|
} |
| 4379 |
|
} |
| 4380 |
|
} |
| 4381 |
|
|
| 4382 |
} |
} |
| 4383 |
|
|