Click here to Skip to main content
15,906,316 members
Home / Discussions / C#
   

C#

 
GeneralRe: Uploading already use file Pin
BobJanova8-Sep-11 10:25
BobJanova8-Sep-11 10:25 
GeneralRe: Uploading already use file Pin
Eddy Vluggen8-Sep-11 10:34
professionalEddy Vluggen8-Sep-11 10:34 
GeneralRe: Uploading already use file Pin
MicroVirus8-Sep-11 13:07
MicroVirus8-Sep-11 13:07 
QuestionDirectShowNET Framework 4.0 and 2.0 Pin
semixor8-Sep-11 1:10
semixor8-Sep-11 1:10 
AnswerRe: DirectShowNET Framework 4.0 and 2.0 Pin
Eddy Vluggen8-Sep-11 7:00
professionalEddy Vluggen8-Sep-11 7:00 
GeneralRe: DirectShowNET Framework 4.0 and 2.0 Pin
semixor8-Sep-11 9:01
semixor8-Sep-11 9:01 
AnswerRe: DirectShowNET Framework 4.0 and 2.0 Pin
Eddy Vluggen8-Sep-11 9:11
professionalEddy Vluggen8-Sep-11 9:11 
QuestionIBasicVideo + NullRenderer ( How ? ) Pin
semixor8-Sep-11 0:50
semixor8-Sep-11 0:50 
Hi all ! I have that code below:
How can i connect the graph and IBasicVideo to NullRenderer ? I have it already working but with IVideoWindow, how to use NullRenderer instead of IVideoWindow and get the same results ?

Thanks in advance!
BTW: Sorry for my english Smile | :)

C#
private void BuildGraph(){
            int hr = 0;
            this.graphBuilder = (IGraphBuilder)new FilterGraph();

            // Have the graph builder construct its the appropriate graph automatically
            hr = this.graphBuilder.RenderFile(filename, null);
            DsError.ThrowExceptionForHR(hr);

            //IBaseFilter nullrenderer = (IBaseFilter)new NullRenderer();
            //this.graphBuilder.AddFilter(nullrenderer, "Null Renderer");
            //nullrenderer.SetSyncSource(null);

            // QueryInterface for DirectShow interfaces
            this.mediaControl = (IMediaControl)this.graphBuilder;
            this.mediaEventEx = (IMediaEventEx)this.graphBuilder;
            this.mediaSeeking = (IMediaSeeking)this.graphBuilder;
            this.mediaPosition = (IMediaPosition)this.graphBuilder;
            // Query for video interfaces, which may not be relevant for audio files
            this.videoWindow = this.graphBuilder as IVideoWindow;
            this.basicVideo = this.graphBuilder as IBasicVideo;
            // Disable audio for grabber
            // this.basicAudio = this.graphBuilder as IBasicAudio;
            hr = this.mediaEventEx.SetNotifyWindow(myOwnerPanelHandle.Handle, WMGraphNotify, IntPtr.Zero);
            DsError.ThrowExceptionForHR(hr);
            // Setup the video window
            hr = this.videoWindow.put_Owner(myOwnerPanelHandle.Handle);
            DsError.ThrowExceptionForHR(hr);
            this.videoWindow.put_AutoShow(OABool.False);
            //this.videoWindow.put_WindowState(WindowState.ShowNA);
            hr = this.videoWindow.put_WindowStyle(WindowStyle.Child | WindowStyle.ClipSiblings | WindowStyle.ClipChildren);
            DsError.ThrowExceptionForHR(hr);
            hr = InitVideoWindow(1, 1);
            DsError.ThrowExceptionForHR(hr);
#if DEBUG
            rot = new DsROTEntry(this.graphBuilder);
#endif
            // Run the graph to play the media file
            hr = this.mediaControl.Run();
            DsError.ThrowExceptionForHR(hr);
            hr = this.mediaControl.Pause();
            DsError.ThrowExceptionForHR(hr);
            //videoWindow.put_Visible(OABool.False);

            // Get video info
            hr = mediaPosition.get_Duration(out Duration);
            DsError.ThrowExceptionForHR(hr);
            hr = basicVideo.get_VideoHeight(out pVideoHeight);
            DsError.ThrowExceptionForHR(hr);
            hr = basicVideo.get_VideoWidth(out pVideoWidth);
            DsError.ThrowExceptionForHR(hr);
}

AnswerRe: IBasicVideo + NullRenderer ( How ? ) Pin
MicroVirus8-Sep-11 4:49
MicroVirus8-Sep-11 4:49 
GeneralRe: IBasicVideo + NullRenderer ( How ? ) Pin
semixor8-Sep-11 5:52
semixor8-Sep-11 5:52 
GeneralRe: IBasicVideo + NullRenderer ( How ? ) Pin
MicroVirus8-Sep-11 13:28
MicroVirus8-Sep-11 13:28 
GeneralRe: IBasicVideo + NullRenderer ( How ? ) Pin
semixor9-Sep-11 3:20
semixor9-Sep-11 3:20 
QuestionDeep Linking between views when using PRISM Pin
Phillip Donegan7-Sep-11 21:46
Phillip Donegan7-Sep-11 21:46 
QuestionEF Repository Questions Pin
Matt U.7-Sep-11 11:00
Matt U.7-Sep-11 11:00 
GeneralRe: EF Repository Questions Pin
PIEBALDconsult7-Sep-11 18:10
mvePIEBALDconsult7-Sep-11 18:10 
GeneralRe: EF Repository Questions Pin
Matt U.8-Sep-11 2:35
Matt U.8-Sep-11 2:35 
GeneralRe: EF Repository Questions Pin
PIEBALDconsult8-Sep-11 3:10
mvePIEBALDconsult8-Sep-11 3:10 
AnswerRe: EF Repository Questions Pin
BobJanova8-Sep-11 3:40
BobJanova8-Sep-11 3:40 
GeneralRe: EF Repository Questions Pin
Matt U.8-Sep-11 4:37
Matt U.8-Sep-11 4:37 
QuestionBetter Way to Search for a Value in a List of KeyValuePairs??? Pin
NickPace7-Sep-11 7:59
NickPace7-Sep-11 7:59 
AnswerRe: Better Way to Search for a Value in a List of KeyValuePairs??? Pin
Pete O'Hanlon7-Sep-11 8:08
mvePete O'Hanlon7-Sep-11 8:08 
AnswerRe: Better Way to Search for a Value in a List of KeyValuePairs??? Pin
Ennis Ray Lynch, Jr.7-Sep-11 8:08
Ennis Ray Lynch, Jr.7-Sep-11 8:08 
GeneralRe: Better Way to Search for a Value in a List of KeyValuePairs??? Pin
BillWoodruff7-Sep-11 19:37
professionalBillWoodruff7-Sep-11 19:37 
AnswerRe: Better Way to Search for a Value in a List of KeyValuePairs??? Pin
Dan Mos7-Sep-11 8:14
Dan Mos7-Sep-11 8:14 
GeneralRe: Better Way to Search for a Value in a List of KeyValuePairs??? Pin
NickPace7-Sep-11 9:12
NickPace7-Sep-11 9:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.