2014-05-08 18:13:50 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2014 Chukong Technologies Inc.
|
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
#include "UIVideoPlayer.h"
|
2014-05-08 18:13:50 +08:00
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
|
|
|
#include <unordered_map>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <jni.h>
|
|
|
|
#include <string>
|
|
|
|
#include "jni/JniHelper.h"
|
2014-06-04 14:53:32 +08:00
|
|
|
#include "base/CCDirector.h"
|
|
|
|
#include "base/CCEventListenerKeyboard.h"
|
2014-05-08 18:13:50 +08:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------------------------------------
|
|
|
|
#define CLASS_NAME "org/cocos2dx/lib/Cocos2dxVideoHelper"
|
|
|
|
|
|
|
|
USING_NS_CC;
|
|
|
|
|
2014-07-17 21:10:26 +08:00
|
|
|
static void executeVideoCallback(int index,int event);
|
|
|
|
|
2014-07-17 21:19:09 +08:00
|
|
|
#define QUIT_FULLSCREEN 1000
|
|
|
|
|
2014-05-08 18:13:50 +08:00
|
|
|
extern "C" {
|
|
|
|
void Java_org_cocos2dx_lib_Cocos2dxVideoHelper_nativeExecuteVideoCallback(JNIEnv * env, jobject obj, jint index,jint event) {
|
|
|
|
executeVideoCallback(index,event);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int createVideoWidgetJNI()
|
|
|
|
{
|
|
|
|
JniMethodInfo t;
|
|
|
|
int ret = -1;
|
|
|
|
if (JniHelper::getStaticMethodInfo(t, CLASS_NAME, "createVideoWidget", "()I")) {
|
|
|
|
ret = t.env->CallStaticIntMethod(t.classID, t.methodID);
|
|
|
|
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
void callVideoNonParameterFun(int index,const char* funName)
|
|
|
|
{
|
|
|
|
JniMethodInfo t;
|
|
|
|
|
|
|
|
if (JniHelper::getStaticMethodInfo(t, CLASS_NAME, funName, "(I)V")) {
|
|
|
|
t.env->CallStaticVoidMethod(t.classID, t.methodID, index);
|
|
|
|
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void removeVideoWidgetJNI(int index)
|
|
|
|
{
|
|
|
|
callVideoNonParameterFun(index,"removeVideoWidget");
|
|
|
|
}
|
|
|
|
|
|
|
|
void setVideoRectJNI(int index,int left,int top,int width,int height)
|
|
|
|
{
|
|
|
|
JniMethodInfo t;
|
|
|
|
|
|
|
|
if (JniHelper::getStaticMethodInfo(t, CLASS_NAME, "setVideoRect", "(IIIII)V")) {
|
|
|
|
t.env->CallStaticVoidMethod(t.classID, t.methodID, index, left, top, width, height);
|
|
|
|
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-17 21:10:26 +08:00
|
|
|
void setFullScreenEnabledJni(int index,bool enabled, int width, int height)
|
|
|
|
{
|
|
|
|
JniMethodInfo t;
|
|
|
|
|
|
|
|
if (JniHelper::getStaticMethodInfo(t, CLASS_NAME, "setFullScreenEnabled", "(IZII)V")) {
|
|
|
|
t.env->CallStaticVoidMethod(t.classID, t.methodID, index, enabled, width, height);
|
|
|
|
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-08 18:13:50 +08:00
|
|
|
void setVideoURLJNI(int index,int videoSource,const std::string& videoUrl)
|
|
|
|
{
|
|
|
|
JniMethodInfo t;
|
|
|
|
if (JniHelper::getStaticMethodInfo(t, CLASS_NAME, "setVideoUrl", "(IILjava/lang/String;)V")) {
|
|
|
|
jstring stringArg = t.env->NewStringUTF(videoUrl.c_str());
|
|
|
|
t.env->CallStaticVoidMethod(t.classID, t.methodID, index, videoSource,stringArg);
|
|
|
|
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
|
|
|
t.env->DeleteLocalRef(stringArg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void startVideoJNI(int index)
|
|
|
|
{
|
|
|
|
callVideoNonParameterFun(index,"startVideo");
|
|
|
|
}
|
|
|
|
|
|
|
|
void pauseVideoJNI(int index)
|
|
|
|
{
|
|
|
|
callVideoNonParameterFun(index,"pauseVideo");
|
|
|
|
}
|
|
|
|
|
|
|
|
void resumeVideoJNI(int index)
|
|
|
|
{
|
|
|
|
callVideoNonParameterFun(index,"resumeVideo");
|
|
|
|
}
|
|
|
|
|
|
|
|
void stopVideoJNI(int index)
|
|
|
|
{
|
|
|
|
callVideoNonParameterFun(index,"stopVideo");
|
|
|
|
}
|
|
|
|
|
|
|
|
void seekVideoToJNI(int index,int msec)
|
|
|
|
{
|
|
|
|
JniMethodInfo t;
|
|
|
|
|
|
|
|
if (JniHelper::getStaticMethodInfo(t, CLASS_NAME, "seekVideoTo", "(II)V")) {
|
|
|
|
t.env->CallStaticVoidMethod(t.classID, t.methodID, index, msec);
|
|
|
|
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void setVideoVisible(int index,bool visible)
|
|
|
|
{
|
|
|
|
JniMethodInfo t;
|
|
|
|
|
|
|
|
if (JniHelper::getStaticMethodInfo(t, CLASS_NAME, "setVideoVisible", "(IZ)V")) {
|
|
|
|
t.env->CallStaticVoidMethod(t.classID, t.methodID, index, visible);
|
|
|
|
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void setVideoKeepRatioEnabled(int index,bool enabled)
|
|
|
|
{
|
|
|
|
JniMethodInfo t;
|
|
|
|
|
|
|
|
if (JniHelper::getStaticMethodInfo(t, CLASS_NAME, "setVideoKeepRatioEnabled", "(IZ)V")) {
|
|
|
|
t.env->CallStaticVoidMethod(t.classID, t.methodID, index, enabled);
|
|
|
|
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
using namespace cocos2d::experimental::ui;
|
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
static std::unordered_map<int, VideoPlayer*> s_allVideoPlayers;
|
2014-05-08 18:13:50 +08:00
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
VideoPlayer::VideoPlayer()
|
|
|
|
: _videoPlayerIndex(-1)
|
2014-05-14 14:44:04 +08:00
|
|
|
, _eventCallback(nullptr)
|
2014-05-08 18:13:50 +08:00
|
|
|
, _fullScreenEnabled(false)
|
|
|
|
, _fullScreenDirty(false)
|
|
|
|
, _keepAspectRatioEnabled(false)
|
|
|
|
{
|
2014-05-09 11:30:07 +08:00
|
|
|
_videoPlayerIndex = createVideoWidgetJNI();
|
|
|
|
s_allVideoPlayers[_videoPlayerIndex] = this;
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
VideoPlayer::~VideoPlayer()
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-09 11:30:07 +08:00
|
|
|
s_allVideoPlayers.erase(_videoPlayerIndex);
|
|
|
|
removeVideoWidgetJNI(_videoPlayerIndex);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
|
2014-05-14 14:44:04 +08:00
|
|
|
void VideoPlayer::setFileName(const std::string& fileName)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-14 14:44:04 +08:00
|
|
|
_videoURL = fileName;
|
|
|
|
_videoSource = VideoPlayer::Source::FILENAME;
|
|
|
|
setVideoURLJNI(_videoPlayerIndex, (int)Source::FILENAME,_videoURL);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
|
2014-05-14 14:44:04 +08:00
|
|
|
void VideoPlayer::setURL(const std::string& videoUrl)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-14 14:44:04 +08:00
|
|
|
_videoURL = videoUrl;
|
|
|
|
_videoSource = VideoPlayer::Source::URL;
|
|
|
|
setVideoURLJNI(_videoPlayerIndex,(int)Source::URL,_videoURL);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
|
2014-06-05 00:48:35 +08:00
|
|
|
void VideoPlayer::draw(Renderer* renderer, const Mat4 &transform, uint32_t flags)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-06-05 00:48:35 +08:00
|
|
|
cocos2d::ui::Widget::draw(renderer,transform,flags);
|
2014-05-08 18:13:50 +08:00
|
|
|
|
2014-07-17 21:10:26 +08:00
|
|
|
if (flags & FLAGS_TRANSFORM_DIRTY)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
|
|
|
auto directorInstance = Director::getInstance();
|
|
|
|
auto glView = directorInstance->getOpenGLView();
|
|
|
|
auto frameSize = glView->getFrameSize();
|
|
|
|
|
2014-07-17 21:10:26 +08:00
|
|
|
auto winSize = directorInstance->getWinSize();
|
2014-05-08 18:13:50 +08:00
|
|
|
|
2014-07-17 21:10:26 +08:00
|
|
|
auto leftBottom = convertToWorldSpace(Point::ZERO);
|
|
|
|
auto rightTop = convertToWorldSpace(Point(_contentSize.width,_contentSize.height));
|
2014-05-08 18:13:50 +08:00
|
|
|
|
2014-07-17 21:10:26 +08:00
|
|
|
auto uiLeft = frameSize.width / 2 + (leftBottom.x - winSize.width / 2 ) * glView->getScaleX();
|
|
|
|
auto uiTop = frameSize.height /2 - (rightTop.y - winSize.height / 2) * glView->getScaleY();
|
2014-05-08 18:13:50 +08:00
|
|
|
|
2014-07-17 21:10:26 +08:00
|
|
|
setVideoRectJNI(_videoPlayerIndex,uiLeft,uiTop,
|
|
|
|
(rightTop.x - leftBottom.x) * glView->getScaleX(),
|
|
|
|
(rightTop.y - leftBottom.y) * glView->getScaleY());
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
#if CC_VIDEOPLAYER_DEBUG_DRAW
|
2014-05-08 18:13:50 +08:00
|
|
|
_customDebugDrawCommand.init(_globalZOrder);
|
2014-05-09 11:30:07 +08:00
|
|
|
_customDebugDrawCommand.func = CC_CALLBACK_0(VideoPlayer::drawDebugData, this);
|
2014-05-08 18:13:50 +08:00
|
|
|
renderer->addCommand(&_customDebugDrawCommand);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
void VideoPlayer::setFullScreenEnabled(bool enabled)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
|
|
|
if (_fullScreenEnabled != enabled)
|
|
|
|
{
|
|
|
|
_fullScreenEnabled = enabled;
|
2014-07-17 21:10:26 +08:00
|
|
|
|
|
|
|
auto frameSize = Director::getInstance()->getOpenGLView()->getFrameSize();
|
|
|
|
setFullScreenEnabledJni(_videoPlayerIndex, enabled, frameSize.width, frameSize.height);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-27 11:17:13 +08:00
|
|
|
bool VideoPlayer::isFullScreenEnabled()const
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
|
|
|
return _fullScreenEnabled;
|
|
|
|
}
|
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
void VideoPlayer::setKeepAspectRatioEnabled(bool enable)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
|
|
|
if (_keepAspectRatioEnabled != enable)
|
|
|
|
{
|
|
|
|
_keepAspectRatioEnabled = enable;
|
2014-05-09 11:30:07 +08:00
|
|
|
setVideoKeepRatioEnabled(_videoPlayerIndex,enable);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
#if CC_VIDEOPLAYER_DEBUG_DRAW
|
|
|
|
void VideoPlayer::drawDebugData()
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
|
|
|
Director* director = Director::getInstance();
|
|
|
|
CCASSERT(nullptr != director, "Director is null when seting matrix stack");
|
|
|
|
|
|
|
|
director->pushMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW);
|
|
|
|
director->loadMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, _modelViewTransform);
|
|
|
|
|
|
|
|
auto size = getContentSize();
|
|
|
|
|
|
|
|
Point vertices[4]=
|
|
|
|
{
|
|
|
|
Point::ZERO,
|
|
|
|
Point(size.width, 0),
|
|
|
|
Point(size.width, size.height),
|
|
|
|
Point(0, size.height)
|
|
|
|
};
|
|
|
|
|
|
|
|
DrawPrimitives::drawPoly(vertices, 4, true);
|
|
|
|
|
|
|
|
director->popMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-05-14 14:44:04 +08:00
|
|
|
void VideoPlayer::play()
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-14 14:44:04 +08:00
|
|
|
if (! _videoURL.empty())
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-09 11:30:07 +08:00
|
|
|
startVideoJNI(_videoPlayerIndex);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-14 14:44:04 +08:00
|
|
|
void VideoPlayer::pause()
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-14 14:44:04 +08:00
|
|
|
if (! _videoURL.empty())
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-09 11:30:07 +08:00
|
|
|
pauseVideoJNI(_videoPlayerIndex);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-14 14:44:04 +08:00
|
|
|
void VideoPlayer::resume()
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-14 14:44:04 +08:00
|
|
|
if (! _videoURL.empty())
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-09 11:30:07 +08:00
|
|
|
resumeVideoJNI(_videoPlayerIndex);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-14 14:44:04 +08:00
|
|
|
void VideoPlayer::stop()
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-14 14:44:04 +08:00
|
|
|
if (! _videoURL.empty())
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-09 11:30:07 +08:00
|
|
|
stopVideoJNI(_videoPlayerIndex);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-14 14:44:04 +08:00
|
|
|
void VideoPlayer::seekTo(float sec)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-14 14:44:04 +08:00
|
|
|
if (! _videoURL.empty())
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-09 11:30:07 +08:00
|
|
|
seekVideoToJNI(_videoPlayerIndex,int(sec * 1000));
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
bool VideoPlayer::isPlaying() const
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
|
|
|
return _isPlaying;
|
|
|
|
}
|
|
|
|
|
2014-05-09 11:30:07 +08:00
|
|
|
void VideoPlayer::setVisible(bool visible)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
|
|
|
cocos2d::ui::Widget::setVisible(visible);
|
|
|
|
|
2014-05-14 14:44:04 +08:00
|
|
|
if (! _videoURL.empty())
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-09 11:30:07 +08:00
|
|
|
setVideoVisible(_videoPlayerIndex,visible);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-14 14:44:04 +08:00
|
|
|
void VideoPlayer::addEventListener(const VideoPlayer::ccVideoPlayerCallback& callback)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-05-14 14:44:04 +08:00
|
|
|
_eventCallback = callback;
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
|
2014-07-17 21:10:26 +08:00
|
|
|
void VideoPlayer::onPlayEvent(int event)
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-07-17 21:19:09 +08:00
|
|
|
if (event == QUIT_FULLSCREEN)
|
2014-07-17 21:10:26 +08:00
|
|
|
{
|
|
|
|
_fullScreenEnabled = false;
|
|
|
|
}
|
|
|
|
else
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-07-17 21:10:26 +08:00
|
|
|
VideoPlayer::EventType videoEvent = (VideoPlayer::EventType)event;
|
|
|
|
if (videoEvent == VideoPlayer::EventType::PLAYING) {
|
|
|
|
_isPlaying = true;
|
|
|
|
} else {
|
|
|
|
_isPlaying = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (_eventCallback)
|
|
|
|
{
|
|
|
|
_eventCallback(this,videoEvent);
|
|
|
|
}
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-23 15:03:46 +08:00
|
|
|
cocos2d::ui::Widget* VideoPlayer::createCloneInstance()
|
|
|
|
{
|
|
|
|
return VideoPlayer::create();
|
|
|
|
}
|
|
|
|
|
|
|
|
void VideoPlayer::copySpecialProperties(Widget *widget)
|
|
|
|
{
|
|
|
|
VideoPlayer* videoPlayer = dynamic_cast<VideoPlayer*>(widget);
|
|
|
|
if (videoPlayer)
|
|
|
|
{
|
|
|
|
_isPlaying = videoPlayer->_isPlaying;
|
|
|
|
_fullScreenEnabled = videoPlayer->_fullScreenEnabled;
|
|
|
|
_fullScreenDirty = videoPlayer->_fullScreenDirty;
|
|
|
|
_videoURL = videoPlayer->_videoURL;
|
|
|
|
_keepAspectRatioEnabled = videoPlayer->_keepAspectRatioEnabled;
|
|
|
|
_videoSource = videoPlayer->_videoSource;
|
|
|
|
_videoPlayerIndex = videoPlayer->_videoPlayerIndex;
|
|
|
|
_eventCallback = videoPlayer->_eventCallback;
|
|
|
|
_videoView = videoPlayer->_videoView;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-08 18:13:50 +08:00
|
|
|
void executeVideoCallback(int index,int event)
|
|
|
|
{
|
2014-05-09 11:30:07 +08:00
|
|
|
auto it = s_allVideoPlayers.find(index);
|
|
|
|
if (it != s_allVideoPlayers.end())
|
2014-05-08 18:13:50 +08:00
|
|
|
{
|
2014-07-17 21:10:26 +08:00
|
|
|
s_allVideoPlayers[index]->onPlayEvent(event);
|
2014-05-08 18:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-05 00:48:35 +08:00
|
|
|
#endif
|