axwindowsmediaplayer

get value from child from to parent form

久未见 提交于 2019-12-11 08:28:04
问题 i have 2 form in my media player project i have make object of from1 (parent form) and by that get value from form1 in form3. but i also need to get value of a variable from form3 to form1. but the problem is that when i make the object of form3 in form1 like this Form3 m_child; public Form1(Form3 frm3) { InitializeComponent(); m_child = frm3; } it shows the error in the program.cs that from1 does not contain a constructor that contain 0 argument . i know i have to pass there a parameter in

How to play a video from WinForms resources in a axWindowsMediaPlayer?

泄露秘密 提交于 2019-12-11 07:26:51
问题 Does anybody know or have any idea for how to play a video from the applications resources into an axWindowsMediaPlayer component? I mean something like: axWindowsMediaPlayer1.TheProperty = Resources.MyVideoResource; Would be very nice, but I don't think such property exists.. 回答1: Add Interop.axWMPLib and / or Interop.WMPLib references to your project (if i don't remember wrong axWmpLib works with windows mp and if no wmp found on the pc then wmplib connects with any installed -or default-

AxWindowsMediaPlayer - how to set video border color programmatically

流过昼夜 提交于 2019-12-11 03:40:00
问题 if you play video using Windows Media Player, there is an option "Video border color" in "Options"\"Performance". Default color is black. How can I set color to white programmatically, when using AxWindowsMediaPlayer component in WinForms? Prereq: .NET 4.0, WMP 12 for Windows 7 Thanks a lot 来源: https://stackoverflow.com/questions/18641095/axwindowsmediaplayer-how-to-set-video-border-color-programmatically

Embedded Windows Media Player Set Position is slow

旧街凉风 提交于 2019-12-11 02:27:56
问题 So, I have an AxWindowsMediaPlayer control on my form, and I'm looking to, while its playing, change the playback position to another point. I found: mediaplayer.Ctlcontrols.currentPosition = <position in seconds> But If I call that whilst its playing, it does jump to the right position and claims to keep playing, but in reality the video stops playing. I've tried pausing/stopping before I change the position and playing afterwards, but no luck. How can I get around this? UPDATE So, if I wait

Non-overlapped transparent control

微笑、不失礼 提交于 2019-12-11 00:25:54
问题 I'm trying to make a tooltip for my video player. I use a windows media player embedded into my winform's app on c# ( AxWMPLib.AxWindowsMediaPlayer ) for playing video. And I have created a control that shows a current position of a media. This control is transparent. Control's code is below: namespace player.Controls { public partial class TransparentToolTip : System.Windows.Forms.UserControl { public enum PointerLocation : byte { ... } #region Private data // ... #endregion Timer Wriggler =

AxWindowsMediaPlayer size in WPF applications

落爺英雄遲暮 提交于 2019-12-02 11:45:17
问题 I am using an AxWindowsMediaPlayer in a WindowsFormsHost in a WPF application. I'm having problems with sizing the control. I need to hide the video part, and keep only the part with buttons and seek bar. (since I run audio) I need to adjust the WindowsFormsHost to only display this part. I tried to resize the WindowsFormsHost manually so that it only shows the required part, but when I tested the program on different pc's it wasn't displayed properly. Some parts from the control were cropped

AxWindowsMediaPlayer size in WPF applications

a 夏天 提交于 2019-12-02 06:02:15
I am using an AxWindowsMediaPlayer in a WindowsFormsHost in a WPF application. I'm having problems with sizing the control. I need to hide the video part, and keep only the part with buttons and seek bar. (since I run audio) I need to adjust the WindowsFormsHost to only display this part. I tried to resize the WindowsFormsHost manually so that it only shows the required part, but when I tested the program on different pc's it wasn't displayed properly. Some parts from the control were cropped. I know you want to hide the video with the uiMOde awWindowsMediaPlayer.uiMode= "invisible"; But, this

Catastrophic failure (Exception from HRESULT: 0x8000FFFF) creating a playlist with axwindowsMediaPlayer

痴心易碎 提交于 2019-12-01 21:33:58
问题 I am using the axwindowsMediaPlayer object to show videos in a winform. In particular I want to play a playlist. Everything works fine on my pc (win7) and used to work fine also in another pc with winXP (the pc of the final user). But something happened a couple of days ago: on the XP PC I started to receive the following expcetion Unhandled Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) System.Runtime.InteropServices.COMException Stack Trace: at WMPLib

Catastrophic failure (Exception from HRESULT: 0x8000FFFF) creating a playlist with axwindowsMediaPlayer

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 20:40:31
I am using the axwindowsMediaPlayer object to show videos in a winform. In particular I want to play a playlist. Everything works fine on my pc (win7) and used to work fine also in another pc with winXP (the pc of the final user). But something happened a couple of days ago: on the XP PC I started to receive the following expcetion Unhandled Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) System.Runtime.InteropServices.COMException Stack Trace: at WMPLib.IWMPPlaylistCollection.newPlaylist(String bstrName) at BrinaS941.ScreenSaverVideo.ScreenSaver_Load(Object

Stretch video of AxWindowsMediaPlayer without maintaining aspect ration in C#

孤街醉人 提交于 2019-12-01 08:27:26
问题 Using the AxWindowsMediaPlayer I need to stretch a video to take up the entire screen. The issue with stretchToFit = true , is that stretchToFit maintains the aspect ratio of the video, creating blackbars if the video or monitor is not of the same ratio. I do not want these black bars. I do not want to maintain the aspect ratio when I stretch the video. I have been looking for an answer to this problem for a long time and have read countless questions posed by others. As far as I can tell, no