How to remove a video
-
Hi! I'm using Microsoft.DirectX.AudioVideoPlayback to play a video on my application. I can add more than one video at run time. But I can't distinguish them and remove them.
Panel panel=new Panel(); Video video=new Video(); video.Owner=panel;
I use the code above. I can't remove the video. What should I do? Thanks in advance. -
Hi! I'm using Microsoft.DirectX.AudioVideoPlayback to play a video on my application. I can add more than one video at run time. But I can't distinguish them and remove them.
Panel panel=new Panel(); Video video=new Video(); video.Owner=panel;
I use the code above. I can't remove the video. What should I do? Thanks in advance.You have a major issue. AudioVideoPlayback is rubbish and it leaks memory like crazy. I wrote an article on this, if you read that ,you'll probably get an answer to your question, too. However, basically, you should have one player, and change what video it is playing, maintaining your own playlist. You should also dispose of videos that have played, the stupid control won't do that.
Christian Graus Driven to the arms of OSX by Vista.
-
You have a major issue. AudioVideoPlayback is rubbish and it leaks memory like crazy. I wrote an article on this, if you read that ,you'll probably get an answer to your question, too. However, basically, you should have one player, and change what video it is playing, maintaining your own playlist. You should also dispose of videos that have played, the stupid control won't do that.
Christian Graus Driven to the arms of OSX by Vista.
-
You already have been helped and given all the information you need. Did you even read his article[^]?
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) -
You already have been helped and given all the information you need. Did you even read his article[^]?
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)