axwindowsmediaplayer

How to delete a windows media playlist programmatically

折月煮酒 提交于 2020-02-06 04:36:07
问题 I am using a C# application where I have to create a playlist. At the end of this application on form close I want to delete this play list which has been created. How do I do this? what I want is WMP.playlistCollection.remove("myplaylist"); This is wrong and does not work. Is there something similar? 回答1: you need to give Playlist object as the parameter IWMPPlaylistArray plCollection = WMP.playlistCollection.getByName("myplaylist"); if (plCollection.count > 0) { IWMPPlaylist pl =

axWindowsMediaPlayer: Black Screen on looping

眉间皱痕 提交于 2020-02-02 11:30:12
问题 I have created a Windows Form Application having axWindowsMediaPlaye r control. I haven't created a playlist on it, but I have stored my .mp4 files at a particular location. I pass the path to my next video at Media Ended state. For the first time, the player receives the correct path and play. But for the second video, I can only see a black screen although the player is receiving the correct path to play. Here is my code for Media Ended State: private void axWindowsMediaPlayer

How to jump X second with axWindowsMediaPlayer in C#

梦想的初衷 提交于 2020-01-11 03:58:06
问题 I am using axWindowsMediaPlayer, and I have a video loaded, but I want to jump X seconds. So, for example, if the current time is 1 minute into the video, I want to jump to 1 minute 10 seconds. 回答1: Okay, I found my solution. I was actually running it correctly, but I was not accounting for the time it takes to load the video. Specifically, the needed code is like axWindowsMediaPlayer1.Ctlcontrols.currentPosition += 10; However I wrote a function to check to see if the video had finished

C# load video from resources folder not playing

孤人 提交于 2020-01-05 08:33:12
问题 I trying to load my video from the resources folder but its not playing automatically once my form load. Can I know what mistake i have done. Thank you. This is my c# code: private void Form2_Load(object sender, EventArgs e) { axWindowsMediaPlayer1.URL = @"Resources/abc.mp4"; axWindowsMediaPlayer1.Ctlcontrols.play(); } 回答1: Well I have solved it my ownself. Actually, I accidentally added the @ symbol into my url. That causes the problem. This is the updated code. private void Form2_Load

C# load video from resources folder not playing

痞子三分冷 提交于 2020-01-05 08:31:51
问题 I trying to load my video from the resources folder but its not playing automatically once my form load. Can I know what mistake i have done. Thank you. This is my c# code: private void Form2_Load(object sender, EventArgs e) { axWindowsMediaPlayer1.URL = @"Resources/abc.mp4"; axWindowsMediaPlayer1.Ctlcontrols.play(); } 回答1: Well I have solved it my ownself. Actually, I accidentally added the @ symbol into my url. That causes the problem. This is the updated code. private void Form2_Load

AxWindowsMediaPlayer - black component when starts to play movie

家住魔仙堡 提交于 2019-12-24 07:15:40
问题 I am using AxWindowsMediaPlayer component in my WinForm application. I noticed that when I set URL to file I want to play and call Ctlcontrols.play() command there is an eg. 250ms delay before movie starts to play. During this delay area of AxWindowsMediaPlayer is black. This behavior can be very easily seen when you are changing from one movie to another, or just when you stop currently playing movie and start it again. My current solution is based on postponed AxWindowsMediaPlayer

Axwindows media player dectect keydown in full screen mode

馋奶兔 提交于 2019-12-24 01:53:11
问题 I have ax windows media player in my windows forms application. When the user double clicks on it, it becomes full screen. PROBLEM: I want the user to be able to go back to normal screen when he presses the "escape key". I have put a keydown event on the ax media player. This key down event works when in normal mode, but fails when the media player is made full screen. WMPLarge.KeyDownEvent += new AxWMPLib._WMPOCXEvents_KeyDownEventHandler(Form1_KeyDown); private void Form1_KeyDown(object

How to play encrypted video file using WindowsMediaPlayer?

≯℡__Kan透↙ 提交于 2019-12-19 12:49:16
问题 I encrypt my .mp4 into a custom format ( .opu ). Now I should decrypt my file and save them into temp folder at the start of my application. and play them using WindowsMediaPlayer control in C#. So I have the risk of stealing my files from temp folder. What is the best way to prevent stealing my files? How to play encrypted video file using WindowsMediaPlayer? 回答1: The best way would be to perform the decrypt to a stream in memory and play the video from there. That way there is never an on

Overlay a label on an axwindowsmediaplayer control while in fullscreen mode?

淺唱寂寞╮ 提交于 2019-12-12 03:54:09
问题 As the title suggests, I'd like to overlay a label on an axwindowsmediaplayer control while in fullscreen mode. Has anyone any idea how to do it? Thanks, Joe 回答1: I did my by... Creating 2 forms.1 with the media player set to what ever size needed The second form with... formborderstyle = none form2.left = form1.left + form1.mediaplayer.left form2.top = form1.top + form1.mediaplayer.top Lower the opacity to 70 or if you want it in code.. form2.opacity=0.7 Put your text or anything in the

VB.NET Playing Video From My.Resources Automatically Creates The .mp4 File In Filepath

余生长醉 提交于 2019-12-12 01:46:23
问题 I'm basically trying to play a video on Axwindowsmediaplayer from my resources, so it could be seen from other computers besides mine (just taking it from my Resources). And I came up with this. Dim b As Byte() = My.Resources.My_Video Dim TheFIlePath As String = "My Video.mp4" Dim TempFile As System.IO.FileStream = IO.File.Create(TheFIlePath) TempFile.Write(b, 0, b.Length) TempFile.Close() Me.AxWindowsMediaPlayer1.URL = (TheFIlePath) Is there anyway to avoid creating - spawning my video on my