RtpSource problems in a custom application
Hi
We're testing the class 'DShowNetworkFiltersForm', included in one of the Conference XP sample projects.
We get an error calling this class from a custom application at the following instructioniGB.Render(Filter.GetPin(rtpSource, _PinDirection.PINDIR_OUTPUT, Guid.Empty, Guid.Empty, false, 0));
on the method 'CreateReceivingGraph()'.When this occurs, the application stops and the video is not showed.
The reason seems to be that the 'rtpSource' param (see the call below) is an instance of 'MSR.LST.MDShow.Filters.RtpSourceClass'
However, when executing the sample included in the project, this param is an instance of 'System.__ComObject'.
Could this be the reason of the error? In that case, how can it be solved?
Thanks
All Replies
Hi Nuria,
Which class are you calling? The samples aren't meant to "be called". They are meant to show you the basics of getting up and running on your own.
The RtpSourceClass is a COM object, which .Net represents as System.__ComObject, so that behavior is expected.
Do you have a valid RtpSource to be receiving data off the network?
JVE
Hi Jason,
Sorry for the delay and excuses my English, please.
Yes, We have a valid RtpSource but we don't know very well how to use the class RtpSource and the other classes (VideoCapturegraph and so on.). So we have decided to try to use AVCapabilities instead of this.
Thanks for all.
Keep me posted if you need any more help.
The sample code shows you the very basics of how to make things work. AVCapabilities are much richer in functionality.
JVE
Hi again
As I said to you in the previous mail, we have been trying with AVCapabilities. We have begun with a simple sample but it doesn't work:
- We are using ConferenceXP v.4 libraries(dlls)
- We create a new project using VisualStudio 2005 in 'C:\VisualStudio\PruebaAV' called 'PruebaAV'
- The startup class was generated automatically.
- The namespace of the classes is 'PruebaAV'.
- We create a new form similar to the FMain class of the ConferenceXP source, 'Form1':
}using
System;using
System.Collections.Generic;using
System.ComponentModel;using
System.Data;using
System.Drawing;using
System.Text;using
System.Windows.Forms;using
System.Diagnostics;using
MSR.LST;using
MSR.LST.ConferenceXP;using
MSR.LST.MDShow;using
MSR.LST.Net.Rtp;namespace
PruebaAV{
public partial class Form1 : Form{
public Form1(){
InitializeComponent();
Startup();
}
public void Startup(){
Conference.CallingForm = this; // Set the default Conferencing behavior Conference.AutoPlayLocal = true; Conference.AutoPlayRemote = true; Conference.AutoPosition = Conference.AutoPositionMode.FourWay;SetDefaultDevices();
Conference.VenueServiceWrapper.VenueServiceUrl = "http://10.142.85.77/venueservice/venueservice.asmx"; Venue venue = Conference.VenueServiceWrapper.Venues["Prueba"];JoinVenue(venue,
true);}
}
Being the methods SetDefaultDevices() and JoinVenue() the same ones that are used in ConferenceXP.
When we run the solution, several error messages are shown. The first one is 'ConferenceXP was unable to send video....', and the second
'ConferenceXP was unable to send audio....'
Which might be the reason?
Thanks in advance.
I can have someone take a look on our side, but have you tried stepping through the source code to see what it is complaining about? That's usually the best way to learn, and the beauty of us providing the source code...
JVE
A couple of things...
1. You should never access any UI components from the constructor of a Form. Move the Startup code into Form_Load.
2. If you replace JoinVenue with a call to Conference.JoinVenue and follow that with the code from AutoSendAV (which is what happens in JoinVenue) it works for me. Do you have a camera and a microphone installed?
Also, I tested the DShowNetwork sample code and it runs just fine. Depending on what you are trying to accomplish, you might want to go back there in order to understand better how all the parts work together. Start with RtpChat, then DShowInterop, and finally DShowNetwork.
JVE
Hi Jason,
We'll try to test what you say. Thanks for your help.
Nuria.
- Can I get the sample application please?

