Sample name: AVFlow-Initialize
Sample location: %ProgramFiles%\Microsoft Office Communications Server 2007 R2\UCMA SDK 2.0\UCMACore\Sample Applications\Collaboration\QuickStarts\AudioVideoCall\AVFlow-Initialize
Change the settings of an active AudioVideoFlow.
The application places an audio/video call to the designated target, after initializing platform and endpoints.
After the call is connected, the application uses the Initializemethod on the AudioVideoFlowinstance to change the settings of the currently idle audio/video flow, before the flow goes active (that is, before the value of the Stateproperty on the flow is Active). A moment later, the flow goes active, and the changes take effect. (In this case, the endpoint is set to use only audio 8 kHz codecs). The application prints the step-by-step actions it performs to the console, and then exits, performing normal platform shutdown.
- Changing the settings on an audio/video call and its associated
flow at run time to support or to remove support for codecs and
extra data types.
- Basic audio/video call placement.
AudioVideoFlowhandling and control.
- Microsoft Office Communications Server 2007 R2.
- Two users capable of sending and receiving audio calls.
- The credentials for each user, and a client capable of signing
in to Office Communications Server.
- A client signed in to Office Communications Server.
Running the Sample
- Replace the credentials in the variables at the beginning of
the code sample with the credentials and server of the users from
your Office Communications Server topology.
- Substitute the address of the called user in the code sample
with the address of a valid, currently signed-in user capable of
receiving audio calls.
- Open the project in Microsoft Visual Studio, and then press F5.