LibVLCSharp on .net core looking for option to append stream to existing file - libvlcsharp

I'm using LibVLCSharp with videoLAN.LibVLC.Windows on .net core 3.1 console app. I'm recording a http m3u stream to local file. Also, I want to append to existing file. I've tried this.CurrentMedia.AddOption(":sout-file-append"); without success. It keeps overriding file.

this should work
media.AddOption(":no-sout-file-overwrite");
media.AddOption(":sout-file-append");

Related

Azure Linux Web App not compressing files for dotnet core

I'm investigating load times for my Angular app built in dotnet core 3.1 hosted on a Azure Linux web app and have noticed that the javascript files are not compressed:
I've read that by default Azure Web Apps should compress responses and I shouldn't have to do anything to enable this. However, as I am running Kestrel I don't think I can take advantage of server compression, is that correct?
If I can't use server compression I can use Response Compression, but wanted to check that this is the correct course of action? As the javascript files I'm mostly interested in are mostly static, would this middleware be compressing them every time or would it cache them?
Thanks

Azure: Application Insights. Are the ai.x.xx.x-buildxxxxx.js file required?

After enabling Application Insights on my MVC web app I see that a file called ai.0.22.8-build00154.js was added to the /Scripts folder (however, it was not included to the .csproj).
In addition I do not see this file referenced anywhere in the project.
When I run the web app I do see data being sent to my Application Insights instance on Azure.
* Question *
Is this javascript file even required?
Note that I do have the script snippet at the end of the section (per App. Insights documentation).
This file is not required. It is included in case you decide to host Application Insights JS SDK yourself and not use the hosted version on CDN (http://az416426.vo.msecnd.net/scripts/a/ai.0.js). The snippet is referencing this version, so in case you decide to host AI JS SDK script yourself, you also need to update the snippet.
It is recommended that you are referencing the version on the CDN as this is the way to get all the latest updates automatically.
Yes I believe it is required, it's the Nuget package. The filename you have up there seems to match up with the package.

NoDriver calling acmFormatSuggest on Azure

I am Using NAudio for getting MP3 file information as well merging 2 or more MP3 files. It works fine on localhost but when I publish the site on AZURE it throws error "NoDriver calling acmFormatSuggest"
I assume that you are trying to use something that is not installed on the machine in Azure - in your case it is ACM MP3 decoder. On a client Windows it can be pre-installed, but i do not think that server Windows can have it.
Also i suspect that something like that will not be allowed to run on Azure Web Apps (it looks like you are trying to use that).
So, i would suggest you to use Virtual Machine for that and install needed components here or use something software-based. I have found:
new Mp3FileReader(stream,wave=> new DmoMp3FrameDecompressor(wave))
It looks like it can be used in your case. Could you please try?
As Alex has said, it is because the MP3 codecs (both ACM and DMO) are not present on the server. Your options are to find a way to install them, or to use a fully managed MP3 decoder such as NLayer instead.

IBM Worklight 5.0.6.1 - "wlclient.properties file is missing" error during build of JavaME app

I am using Worklight 5.0.6.1 and I am trying to create a JavaME app that simply connects to the Worklight Server and call an adapter procedure.
I have placed the wlclient.properties file in res folder but during execution of the midlet project I get a NullPointerException due to wlclient.properties file not found.
How to overcome this?
I have used Net Beans 7.4, eclipse-juno, eclipse-kepler, eclipse-pulsar. But at the end problem is solved by using eclipse-indigo. I think the problem is with IDEs and not with my program.
Did you read through the training module for Java ME in Worklight 5.0.6.x?
Download the training modules zip
Go through 07_03_Using_Worklight_API_in_native_Java_ME_applications.pdf
Did you try the sample application?
Download the samples zip
Use the project JavaMENativeApp.zip
Instructions in slide #19 of the training module
Does the error also happen when using the ready-made sample project?

Using log4net in a complex software

I'm using log4net logging in my software that consists of several applications.
I want to have one common library for this.
I created a library and put it in the conficuration file. In AssemblyInfo.cs placed attribute:
log4net.Config.XmlConfigurator(ConfigFile = #"c:\logging.xml", Watch = true)
It work for windows service, but in dosn't work for asp.net application.
It work in asp.net if delete attribute from common library and put in into global.asax. However, this leads to that section of the log4net configuration must be made in the windows service.
There is also a business process which causes our library through the
remouting. I want the logging was carried out there too.
Is there way around this?
In my opinion the library should not define where the configuration file is found. Maybe a better idea would be to have a helper method that allows you to configure log4net quickly; that method would take an optional parameter for the config file path and would try to load the configuration file from the specified path first and if that does not work fallback to some maybe the current folder, the application folder or even the web / app.config.
If you insist that it must be an absolute path then you need to give the IIS Application Pool user read access to this file. This way the configuration by attribute should work for services and ASP.Net applications. I do not understand what you mean by "remounting".

Resources