Thank you for your question.
Please download .NET demo version. I've included example how to control FLV playback here: demo_zip\samples\C#\Sample8_Advanced_FLV_Player\
See file res\FlashVideoPlayer.fla
Here the code of this file:
Code: Select all
_root.obj = new Object();
_root.obj.FLV_Play = function(bPlay: String) {
_root.FLVDisplay.play();
}
_root.obj.get_FLV_Play = function():String {
return "1";
}
_root.obj.FLV_Pause = function(bPause: String) {
_root.FLVDisplay.pause();
_root.FLVController.pause();
_root.FLVController.activePlayControl = "play";
}
_root.obj.get_FLV_Pause = function():String {
return "1";
}
_root.obj.set_FLV_Path = function(Path: String) {
_root.FLVDisplay.setMedia(Path);
}
_root.obj.get_FLV_Path = function():String {
return _root.FLVDisplay.contentPath;
}
_root.obj.set_ShowControls = function(Visible: String) {
if (Visible == "true")
{
if (!_root.FLVController.visible)
{
_root.FLVController.visible = true;
_root.FLVDisplay.setSize(_root.FLVDisplay.width, _root.FLVDisplay.height - _root.FLVController.height);
}
}
else
{
if (_root.FLVController.visible)
{
_root.FLVController.visible = false;
_root.FLVDisplay.setSize(_root.FLVDisplay.width, _root.FLVDisplay.height + _root.FLVController.height);
}
}
}
_root.obj.get_ShowControls = function():String {
return _root.FLVController.visible ? "true" : "false";
}
_root.addProperty("FLVPlay", _root.obj.get_FLV_Play, _root.obj.FLV_Play);
_root.addProperty("FLVPause", _root.obj.get_FLV_Pause, _root.obj.FLV_Pause);
_root.addProperty("FLVPath", _root.obj.get_FLV_Path, _root.obj.set_FLV_Path);
_root.addProperty("ShowControls", _root.obj.get_ShowControls, _root.obj.set_ShowControls);
You can play, pause, set FLV path and show/hide controls (with buttons play, pause etc.) from a program.