|
|
|
@ -25,6 +25,8 @@ namespace AKS.EnterpriseLibrary.WebBrowser
|
|
|
|
|
private VideoView vplayer = null; |
|
|
|
|
public AksVideoPlayer(Window window, string _videoTitle,string _url) |
|
|
|
|
{ |
|
|
|
|
//注册gb2312 |
|
|
|
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); |
|
|
|
|
vplayer = new VideoView |
|
|
|
|
{ |
|
|
|
|
Name = "player", |
|
|
|
@ -40,13 +42,6 @@ namespace AKS.EnterpriseLibrary.WebBrowser
|
|
|
|
|
window.Children.Add(this); |
|
|
|
|
mask.TransitionValue(a => a.Background, "0,0,0,100", TimeSpan.FromSeconds(0.3), null, AnimateMode.Linear); |
|
|
|
|
//this.TransitionValue(a => a.MarginTop, 100, TimeSpan.FromSeconds(0.3), new PowerEase { }, AnimateMode.EaseOut); |
|
|
|
|
mask.MouseDown += Mask_MouseDown; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void Mask_MouseDown(object sender, MouseButtonEventArgs e) |
|
|
|
|
{ |
|
|
|
|
window.DragMove(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private Window window; |
|
|
|
|