WebRTCStats - GoogRTT and PacketsLost is null sometimes - webrtc

Just wondering why this might be the case.
Looking over an entire media session between two WebRTC peers, it seems that some reports from the 'send' audio channel have null values for googRtt and packetsLost. Is there a reason for this?
Example:
"sendAudioChannel": {
"googCodecName": "opus",
"googRtt": null,
"bytesSent": 22636,
"packetsSent": 190,
"packetsLost": null,
"audioInputLevel": 0,
"googJitterReceived": null,
"googResidualEchoLikelihood": 0,
"googEchoCancellationReturnLoss": -100,
"googVoiceCaptureToPacketDelayMs": 0,
"googEchoCancellationReturnLossEnhancement": -100
}
This event is from half way through the call.

Related

How to Get rotated image from camera through windows media foundation

I use the MF_MT_VIDEO_ROTATION attribute,but it does not take effect. The process is as follows:
1、hr = m_pReader->GetNativeMediaType(
(DWORD)MF_SOURCE_READER_FIRST_VIDEO_STREAM,
i,
&pType
);
2、hr = pType->SetUINT32(MF_MT_VIDEO_ROTATION, MFVideoRotationFormat_90);
3、hr = m_pReader->SetCurrentMediaType(
(DWORD)MF_SOURCE_READER_FIRST_VIDEO_STREAM,
NULL,
pType
);
4、hr = m_pReader->ReadSample(
(DWORD)MF_SOURCE_READER_FIRST_VIDEO_STREAM,
0,
NULL,
NULL,
NULL,
NULL
);
Where's the problem?
MF_MT_VIDEO_ROTATION gives you original rotation of the video. To use it in terms of video rotation it is insufficient to change the attribute value, you have to use APIs that actually rotate the frames, such as, for example, Video Processor MFT.

Where can I find my 'user_key' for launchDarkly client?

I'm setting up the client on my React Native project
let client = new LDClient();
let config = { "mobileKey": "YOUR_MOBILE_KEY" };
let user = { "key": "user_key" }; // where do I find this info?
await client.configure(config, user);
I'm currently getting as a return value to this {"_U": 0, "_V": 0, "_W": null, "_X": null} assuming that's because of the missing user_key.
Where can I find my user_key?
user_key is a unique string that identifies the user loading the website. It's something that you need to provide. LaunchDarkly needs to be able to differentiate your users in order to do things like partial rollouts.
I believe you got the user_key from launchDarkly or you can check it in their API documentation on how to get the user_key
As for the problem where you get {"_U": 0, "_V": 0, "_W": null, "_X": null}, this is what you get when you log Promise before it resolve.

NPM evaluation maintenance

I've released several times already with quite a few commits but npms.io is not picking it up.
https://api.npms.io/v2/package/openweathermap-ts
"maintenance": {
"releasesFrequency": 1,
"commitsFrequency": 0,
"openIssues": 0,
"issuesDistribution": 0
}
Anyone know why it's doing that?

Halcon - how to set white balance

I have this code to try around with halcon. Images are quite greenish, and cannot figure out how to set whitebalance. I cannot find it in the samples, in the documentation, on google, and in the parameters. How is whitebalance set on halcon?
* Image Acquisition 06: Code generated by Image Acquisition 06
* Image Acquisition 06: Attention: The initialization may fail in case parameters need to
* Image Acquisition 06: be set in a specific order (e.g., image resolution vs. offset).
open_framegrabber ('GigEVision', 0, 0, 0, 0, 0, 0, 'default', -1, 'default', 'GtlForceIP=00010dc465ce,10.5.5.144/24', 'false', 'default', 'S1204667', 0, -1, AcqHandle)
set_framegrabber_param (AcqHandle, 'Gain', 5.01187)
set_framegrabber_param (AcqHandle, 'BlackLevel', 240.0)
dev_open_window (0, 0, 500, 300, 'light gray', WindowHandleButton)
i := 0
create_bar_code_model ([], [], BarCodeHandle)
while (i < 100)
grab_image (Image, AcqHandle)
find_bar_code (Image, SymbolRegions, BarCodeHandle, 'auto', DecodedDataStrings)
get_bar_code_result (BarCodeHandle, 'all', 'decoded_types', BarCodeResults)
i:= i+1
endwhile
close_framegrabber (AcqHandle)
If you open your camera in HDevelop using Assistants -> Image Acquisition -> Connection tab there is a parameter for setting the color space. When I set it to "yuv" on one of my GigE cameras the image looks green. See if you can modify that value to "rgb" or "gray" or "default". There are also some advanced settings under the "Parameters" tab that you could play with by selecting "Guru" under the visibility settings. But I couldn't find white balance settings for my GigE camera under there. Usually the manufacturer of the camera will supply software to allow you to configure advanced parameters (IDS Camera Manager, Basler Pylon etc). You could try opening your camera under the manufacturers software to see if there are any settings for white balance.

I'm trying to add a Box to a JLayeredPane

I declared the Box as: Box caja=Box.createHorizontalBox();
However the first layer the one that says FondoMenu.png is the only one showing and the Box doesnt show unless I put that JOptionPane showing it first, please some help (The BuscaImagen is a method I made that creates JLabel with my specifications)
capas.add(new BuscaImagen("FondoMenu.png", 0, 0), new Integer(0));
caja.add(new BuscaImagen("JUGAR", "FIz.png", 2, 40, 90));
caja.add(Box.createHorizontalStrut(20));
caja.add(new BuscaImagen("SALIR", "FDe.png", 2, 40, 240));
caja.add(Box.createHorizontalStrut(20));
caja.add(new BuscaImagen("INSTRUCCIONES", "FAb.png", 2, 40, 390));
JOptionPane.showMessageDialog(null, caja);
caja.setLocation(60, capas.getHeight() / 2 - 10);
capas.add(caja, new Integer(1));
There is a nice write up on oracle on how to use Layered Panes. I hope this helps with your issue
http://docs.oracle.com/javase/tutorial/uiswing/components/layeredpane.html