Create video player seek bar using DirectX.AudioVideoPlaybackHi,<br><br>I'm trying to create a video player using de Microsoft.Directx.AudioVideoPlayback namespace. I'd like to add a seek bar to this player but I can't find a way to do it <img alt=Sad src="http://forums.microsoft.com/MSDN/emoticons/emotion-6.gif"> . Any idea?<br><br>Thanks in advance<br>© 2009 Microsoft Corporation. All rights reserved.Thu, 19 Jun 2008 00:15:52 Z1525eae1-df10-44dc-9441-40c1112702achttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#1525eae1-df10-44dc-9441-40c1112702achttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#1525eae1-df10-44dc-9441-40c1112702acRonninhttp://social.msdn.microsoft.com/Profile/ko-KR/?user=RonninCreate video player seek bar using DirectX.AudioVideoPlaybackHi,<br><br>I'm trying to create a video player using de Microsoft.Directx.AudioVideoPlayback namespace. I'd like to add a seek bar to this player but I can't find a way to do it <img alt=Sad src="http://forums.microsoft.com/MSDN/emoticons/emotion-6.gif"> . Any idea?<br><br>Thanks in advance<br>Wed, 09 Jan 2008 20:10:12 Z2008-01-11T06:21:33Zhttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#d9ee02d5-e994-4bd2-a2ea-fa2ab82289dehttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#d9ee02d5-e994-4bd2-a2ea-fa2ab82289deJuan Carlos Ruiz [BogotaDotNet.org]http://social.msdn.microsoft.com/Profile/ko-KR/?user=Juan%20Carlos%20Ruiz%20%5bBogotaDotNet.org%5dCreate video player seek bar using DirectX.AudioVideoPlayback<p align=left><font face=Arial size=2></font> </p> <p>as i remember DirectX.AudioVideoPlayback is for simple usage and maybe haven't  allthe capabilities you are searching.</p> <p align=left> </p> <p align=left>but try whit this:</p> <p align=left> </p> <p align=left> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Block</span></div> <p align=left>Microsoft.DirectX.AudioVideoPlayback.Video <font color="#0000ff"><strong>theVideo</strong></font>= new Microsoft.DirectX.AudioVideoPlayback.Video(fileName);</p> <p align=left> </p> <p align=left><font color="#008000">//Use both:</font></p> <p align=left><font color="#008000">//This return a double value indicating the current video position</font></p> <p align=left><strong><font color="#0000ff">theVideo</font></strong>.CurrentPosition </p> <p align=left><font color="#008000">//This return a double value indicating the video Duration </font></p> <p align=left><strong><font color="#0000ff">theVideo</font></strong>.Duration</p> <p align=left> </p></div></div> <p align=left> </p> <p></p> <p align=left> </p> <p align=left> </p> <p align=left> </p> <p align=left> </p>Wed, 09 Jan 2008 23:42:50 Z2008-01-11T06:21:33Zhttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#c83184e3-cc52-4382-860c-b18d21abea71http://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#c83184e3-cc52-4382-860c-b18d21abea71Ronninhttp://social.msdn.microsoft.com/Profile/ko-KR/?user=RonninCreate video player seek bar using DirectX.AudioVideoPlaybackIt seems as a I have to create my own seek bar using that two properties. I hope there were something already implemented because I don't want to expend so much time doing this and I am absolutely newbie creating custom controls and so on...<br><br>Thanks for the response<br>Thu, 10 Jan 2008 06:04:14 Z2008-01-10T06:04:14Zhttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#10352920-37d2-4961-8476-d5a2a52cb09bhttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#10352920-37d2-4961-8476-d5a2a52cb09bJuan Carlos Ruiz [BogotaDotNet.org]http://social.msdn.microsoft.com/Profile/ko-KR/?user=Juan%20Carlos%20Ruiz%20%5bBogotaDotNet.org%5dCreate video player seek bar using DirectX.AudioVideoPlaybackUsing forms designer add a TrackBar object to your application and combine this with the values previously i showed to you.<br><br>Ensure the object container to your video isn't the entire windows form, use a panel or something like that.<br>Thu, 10 Jan 2008 07:04:03 Z2008-01-10T07:04:03Zhttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#c53c2358-3ea7-464e-aafc-d014e55209e5http://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#c53c2358-3ea7-464e-aafc-d014e55209e5Ronninhttp://social.msdn.microsoft.com/Profile/ko-KR/?user=RonninCreate video player seek bar using DirectX.AudioVideoPlaybackOk, I'll try that this evening. Thanks again for your help<br>Thu, 10 Jan 2008 07:31:46 Z2008-01-10T07:31:46Zhttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#dbdb8917-4e38-4290-a17b-0bea0e0f2fc4http://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#dbdb8917-4e38-4290-a17b-0bea0e0f2fc4Wen-Jun Zhanghttp://social.msdn.microsoft.com/Profile/ko-KR/?user=Wen-Jun%20ZhangCreate video player seek bar using DirectX.AudioVideoPlayback<p align=left><font face=Arial size=2>Hi Ronnin,</font></p> <p align=left> </p> <p align=left>Has the problem been resolved yet?</p> <p align=left> </p> <p align=left>If you do not want to create your own control to implement the seeking, another workable approach is using the WMP ActiveX control in your .net application. Please refer to:</p> <p align=left> </p> <div class=title>Using the Windows Media Player Control in a .NET Framework Solution</div> <div class=title align=left><a title="http://msdn2.microsoft.com/en-us/library/bb248593(VS.85).aspx" href="http://msdn2.microsoft.com/en-us/library/bb248593(VS.85).aspx">http://msdn2.microsoft.com/en-us/library/bb248593(VS.85).aspx</a></div> <div class=title align=left> </div> <div class=title align=left>I hope the information helps. Thanks.</div> <div class=title align=left> </div> <div class=title align=left> </div> <div class=title align=left> </div> <div class=title align=left> </div>Mon, 14 Jan 2008 12:57:15 Z2008-01-14T12:57:15Zhttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#a06220c9-52b5-4a53-b994-accbf103413ehttp://social.msdn.microsoft.com/Forums/ko-KR/csharpgeneral/thread/1525eae1-df10-44dc-9441-40c1112702ac#a06220c9-52b5-4a53-b994-accbf103413eRonninhttp://social.msdn.microsoft.com/Profile/ko-KR/?user=RonninCreate video player seek bar using DirectX.AudioVideoPlaybackI have used a TrackBar as suggested before and it solve my problem. Anyway I'll take a look to your suggestion. <br><br>Thanks for answering<br>Mon, 14 Jan 2008 16:33:23 Z2008-01-14T16:33:23Z