Author Message
jcvalsesia
Joined: Jun 4, 2018
Messages: 14
Offline
Scenario: Virtual Machines with video enabled correclty.
VM1: CommunicationPackage 4.9.0.0 sample client
VM2: IX Workplace
Action: VM1 starts video call to VM2.

Problem: Neither the remote video nor local video is being rendered in CommunicationPackage sample client.

I can't see neither the local video nor the remote video in CommunicationPackage but the video call is stablished correctly and I can see it on IX Workplace running in another VM accessed with Remote Desktop.

I believe it is related to D3DImage library and Remote Desktop problem:

[1] https://social.msdn.microsoft.com/Forums/vstudio/en-US/2b3f2e91-56c6-452d-9e84-f33438e62f29/direct2d-d3dimage-and-remote-desktop-with-net-45?forum=wpf

[2] https://stackoverflow.com/questions/61122452/d3dimage-and-remote-desktop

I realized that VideoRenderer2 extends D3DImage library:

namespace Avaya.ClientServices.Media
{
public class VideoRenderer2 : D3DImage, VideoSink, IDisposable


The sample included in CommunicationPackage 4.9.0.0 for Windows is working very well in regular machines.

IX Workplace is working very well in Virtual Machines.
Is there any tweak to get CommunicationPackage working on Remote Desktop like IX Workplace is working?

Thanks,

Julio
Pallavi_M
Joined: Dec 25, 2017
Messages: 105
Offline
Hi,


Thanks for your query. Is it possible for you to provide logs for this issue ?



Thanks,
Avaya DevConnect Team
jcvalsesia
Joined: Jun 4, 2018
Messages: 14
Offline
logs lines betwee 4686-4699

2020-11-09 12:37:26,523 INFO VideoKiosk.SDKManager [11] method:WriteLog -
Info : SCPAPI : VIDEO 0 0; 14808: STAT: webrtc::videocapturemodule::DirectShowVideoSource::setVideoSink setting video sink 00000000

2020-11-09 12:37:26,525 INFO VideoKiosk.SDKManager [1] method:WriteLog -
Info : SCPAPI : ENG 0x01d26de6; 14808: CameraVideoSource::setPreviewVideoSink

2020-11-09 12:37:26,529 INFO VideoKiosk.SDKManager [1] method:WriteLog -
Warning : SCPAPI : ENG 0x02a799cd; 14808: VideoRenderer2(Direct3DRenderer)::restartDirect3D requires to be (re)started

2020-11-09 12:37:26,533 INFO VideoKiosk.SDKManager [1] method:WriteLog -
Error : SCPAPI : ENG 0x02a799cd; 14808: VideoRenderer2(Direct3DRenderer)::processFrame Fail in setFrame (Error 0x80004005: Unspecified error
), Line:232

2020-11-09 12:37:26,536 INFO VideoKiosk.SDKManager [1] method:WriteLog -
Warning : SCPAPI : ENG 0x02a799cd; 14808: VideoRenderer2(Direct3DRenderer)::restartDirect3D requires to be (re)started
Filename sample-client-sdk-video-not -rendering.log [Disk] Download
Pallavi_M
Joined: Dec 25, 2017
Messages: 105
Offline
Hi,

The logs attached have not captured the calls which got established.

The 2 calls were terminated when other party was ringing.

Can you please attach logs for call which is established ?

Thanks
Pallavi
jcvalsesia
Joined: Jun 4, 2018
Messages: 14
Offline
I have attached the logs for call established and two screenshots.
VM1 - I'm using CommunicationSampleApp 4.9.0.0
VM2 - I'm using IX Workplace - latest

I believe the issue is related to this:
"The D3DImage class does not display Direct3D content when WPF renders in software, such as over a Remote Desktop connection, unless you call SetBackBuffer(D3DResourceType, IntPtr, Boolean) and specify true for the enableSoftwareFallback parameter." [1]

Reference:
[1] https://docs.microsoft.com/en-us/dotnet/api/system.windows.interop.d3dimage?view=netframework-4.7.2
[2] https://www.codeproject.com/Articles/28526/Introduction-to-D3DImage

How to use SetBackBuffer(D3DResourceType, IntPtr, Boolean) ?

Thank you.
Julio
  • [Thumb - VidoCall-VM2-IXWorkplace.png]
[Disk] Download
Filename CommunicationSampleApp.log [Disk] Download
  • [Thumb - VideoCall-VM1-CommunicationSampleApp.png]
[Disk] Download
Pallavi_M
Joined: Dec 25, 2017
Messages: 105
Offline
Thanks for logs.

We are investigating the logs and will get back to you asap.


Can you please check enabling WPF renderer on sample app ?
jcvalsesia
Joined: Jun 4, 2018
Messages: 14
Offline
How can I enable WPF renderer in Sample Client?
I didn't know about this feature... is it documented?

Thanks.

Julio
Pallavi_M
Joined: Dec 25, 2017
Messages: 105
Offline
The required doc cannot be attached on this forum.

Do you have mail id to which I can send this doc ?

Meantime you can view following docs:

https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/windows/communication/guide/making_a_video_call.gsp

https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/windows/communication/tech/working_video.gsp

https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/windows/communication/tech/getting_started_video.gsp



Thanks
Pallavi
jcvalsesia
Joined: Jun 4, 2018
Messages: 14
Offline
Yes, mail id: jcvalsesia

I have checked the links before but it will be good to have a WpfVideoRenderer example.

I don't know for instance if it replaces VideoRenderer2 of if they will work together.

I've created this small app using VideoRenderer2 only just to start local video.
Please see attached screenshot.

The link to download the app is here [AVAYA only]: https://avaya365-my.sharepoint.com/:u:/g/personal/jcvalsesia_avaya_com/ETE-edSJIidNtNDLblBID9ABbkhhNqTGyNmGWmQFjJHqrg?e=qcE5e2
  • [Thumb - SampleClient-LocalVideoRender2-only.png]
[Disk] Download
Pallavi_M
Joined: Dec 25, 2017
Messages: 105
Offline
Updates
=====

Connected Julio with GME team for resolving sample code queries.
jcvalsesia
Joined: Jun 4, 2018
Messages: 14
Offline
Replacing the VideoRenderer2 by WpfVideoRenderer did work.

We can close this ticket.

Thank you.

Julio
Go to:   
Mobile view