|
|||
|
Hi,
I'm trying to put VLC Player in Flash (Flash8+AS2). I was downloaded WrapperCreator and produced VLC Wrapper Class (axvlc.dll), then I written down below code in ActionScript: Code:
import SWFKit.*;
import VLCPlayer.*;
var ax = new ActiveXObject("VideoLAN.VLCPlugin.1");
var control = new VLCControl(ax.Identifier);
control.MRL = "c:\\test.mpg";
control.play();
How to embeded the player in the same window? Sorry for my poor English :-[ |
|
|||
|
If you are interesed in then here is such-a-like for media player
Code:
import SWFKit.*;
import WMPlib.*;
var wx = g.createControl("WMPlayer.OCX", 0, 0, 0, 0);
var wmp = new WMPPlayer(wx.activex);
var wmpControls = new WMPControls(wmp.controls);
wmp.URL = "file.mpg";
wmpControls.play()
|
|
|||
|
Thanks for your response,
I try this: Code:
import SWFKit.*;
import VLCPlayer.*;
var g = new SWFKit.Global();
var ax = g.createControl("VideoLAN.VLCPlugin.1", 0, 0, 400, 400);
var control = new VLCControl(ax.activex);
control.MRL = "c:\\test.mpg";
control.play();
any idea ? |
|
|||
|
Code:
import SWFKit.*;
import VLCPlayer.*;
var g = new SWFKit.Global();
var ax = g.createControl("VideoLAN.VLCPlugin.1", 0, 0, 400, 400);
ax.window.move(0, 0, 400, 400);
var control = new VLCControl(ax.activex);
control.MRL = "c:\\test.mpg";
control.play();
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|