| 27 |
import mx.core.Application; |
import mx.core.Application; |
| 28 |
import mx.core.DragSource; |
import mx.core.DragSource; |
| 29 |
import mx.core.FlexGlobals; |
import mx.core.FlexGlobals; |
| 30 |
|
import mx.core.Window; |
| 31 |
import mx.events.AIREvent; |
import mx.events.AIREvent; |
| 32 |
import mx.events.CloseEvent; |
import mx.events.CloseEvent; |
| 33 |
import mx.events.DataGridEvent; |
import mx.events.DataGridEvent; |
| 49 |
import org.mineap.nndd.util.PathMaker; |
import org.mineap.nndd.util.PathMaker; |
| 50 |
import org.mineap.util.config.ConfUtil; |
import org.mineap.util.config.ConfUtil; |
| 51 |
import org.mineap.util.config.ConfigManager; |
import org.mineap.util.config.ConfigManager; |
| 52 |
import org.mineap.util.font.FontUtil; |
import org.mineap.util.font.FontUtil; |
| 53 |
|
|
| 54 |
private var videoPlayer:VideoPlayer; |
private var videoPlayer:VideoPlayer; |
| 55 |
private var playerController:PlayerController; |
private var playerController:PlayerController; |
| 87 |
public var isNgUpEnable:Boolean = true; |
public var isNgUpEnable:Boolean = true; |
| 88 |
public var isSmoothing:Boolean = true; |
public var isSmoothing:Boolean = true; |
| 89 |
public var playerQuality:int = 2; |
public var playerQuality:int = 2; |
| 90 |
|
public var isFollowInfoViewHeight:Boolean = false; |
| 91 |
|
|
| 92 |
public static const RESIZE_TYPE_NICO:int = 1; |
public static const RESIZE_TYPE_NICO:int = 1; |
| 93 |
public static const RESIZE_TYPE_VIDEO:int = 2; |
public static const RESIZE_TYPE_VIDEO:int = 2; |
| 285 |
} |
} |
| 286 |
} |
} |
| 287 |
|
|
| 288 |
|
private function checkboxFollowInfoViewHeight(event:Event):void |
| 289 |
|
{ |
| 290 |
|
this.isFollowInfoViewHeight = this.checkbox_followInfoViewHeight.selected; |
| 291 |
|
if ((event.currentTarget as CheckBox).selected) |
| 292 |
|
{ |
| 293 |
|
this.videoPlayer.resizeInfoView(); |
| 294 |
|
} |
| 295 |
|
} |
| 296 |
|
|
| 297 |
private function checkboxHideUnderControllerChanged(event:Event):void{ |
private function checkboxHideUnderControllerChanged(event:Event):void{ |
| 298 |
this.isHideUnderController = this.checkbox_hideUnderController.selected; |
this.isHideUnderController = this.checkbox_hideUnderController.selected; |
| 299 |
if(this.videoPlayer.stage.displayState != StageDisplayState.FULL_SCREEN_INTERACTIVE){ |
if(this.videoPlayer.stage.displayState != StageDisplayState.FULL_SCREEN_INTERACTIVE){ |
| 1108 |
isEnableWideMode = ConfUtil.parseBoolean(confValue); |
isEnableWideMode = ConfUtil.parseBoolean(confValue); |
| 1109 |
} |
} |
| 1110 |
|
|
| 1111 |
|
confValue = ConfigManager.getInstance().getItem("isFollowInfoViewHeight"); |
| 1112 |
|
if (confValue != null) |
| 1113 |
|
{ |
| 1114 |
|
isFollowInfoViewHeight = ConfUtil.parseBoolean(confValue); |
| 1115 |
|
} |
| 1116 |
|
|
| 1117 |
}catch(error:Error){ |
}catch(error:Error){ |
| 1118 |
trace(error.getStackTrace()); |
trace(error.getStackTrace()); |
| 1119 |
Alert.show(Message.M_CONF_FILE_IS_BROKEN, Message.M_ERROR); |
Alert.show(Message.M_CONF_FILE_IS_BROKEN, Message.M_ERROR); |
| 1241 |
ConfigManager.getInstance().removeItem("isEnableWideMode"); |
ConfigManager.getInstance().removeItem("isEnableWideMode"); |
| 1242 |
ConfigManager.getInstance().setItem("isEnableWideMode", isEnableWideMode); |
ConfigManager.getInstance().setItem("isEnableWideMode", isEnableWideMode); |
| 1243 |
|
|
| 1244 |
|
ConfigManager.getInstance().removeItem("isFollowInfoViewHeight"); |
| 1245 |
|
ConfigManager.getInstance().setItem("isFollowInfoViewHeight", isFollowInfoViewHeight); |
| 1246 |
|
|
| 1247 |
ConfigManager.getInstance().save(); |
ConfigManager.getInstance().save(); |
| 1248 |
|
|
| 1249 |
}catch(error:Error){ |
}catch(error:Error){ |