HLS Steaming in WIndows 8 - windows

I am trying to use the hls framework (https://phonesm.codeplex.com/) on Windows 8.0. i have converted HLSView project to Windows 8.0. But Visual Studio tells me that
static readonly IApplicationInformation ApplicationInformation = ApplicationInformationFactory.DefaultTask.Result; does not exist in current context
_mediaStreamFascade = MediaStreamFascadeSettings.Parameters.Create(_httpClients, _mediaElementManager.SetSourceAsync); does not contain a definition for "create"
_mediaElementManager = new WinRtMediaElementManager(Dispatcher, WinRtMediaElementManager could not be found.
I need to integrate this in a Windows 8.0 project. I have read that it is possible, but i don't know how to get past those errors
I have just tried 72bb1b6bb7f3 version (last commit). i have converted hlsview.win81 project to a windows 8.0 project. After commenting SystemMediaTransportControls i only had 2 problems:
Error 7 The base class or interface of 'SM.Media.IMediaStreamFacade' could not be resolved or is invalid c:\Users\Sergiu\Downloads\phonesm-72bb1b6bb7f3885c65e157823b7cf2d341fa5c95\Source\bin\Debug\SM.Media.Platform.WinRT.dll HlsView.Win81
and at mediaElement1.SetMediaStreamSource(mss);
Error 21 'Windows.UI.Xaml.Controls.MediaElement' does not contain a definition for 'SetMediaStreamSource' and no extension method 'SetMediaStreamSource' accepting a first argument of type 'Windows.UI.Xaml.Controls.MediaElement' could be found (are you missing a using directive or an assembly reference?) c:\users\sergiu\downloads\phonesm-72bb1b6bb7f3885c65e157823b7cf2d341fa5c95\source\app\winrt\hlsview.win81\mainpage.xaml.cs 348 39 HlsView.Win81
I don't know how to make it work from here for windows 8.0. Please any help is welcomed

henric (the phonesm creator) answered this question in https://phonesm.codeplex.com/discussions/569208
Basically you have to implement mediastreamsource yourself for windows 8.

Related

Xamarin.Android binding invalid opcode

Recently received a new Android SDK (aar) to bind in Xamarin. When initially starting the binding I receive the error
COMPILETODALVIK : Uncaught translation error : com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
This error is due to the SDK containing Java 8 (v1.8) byte code and it needs to be compatible with Java 7 (v1.7) to support lower API versions of Android.
In your Android project (not the binding project), add the following property.
<AndroidEnableDesugar>True</AndroidEnableDesugar>
or if you are in VS 2019+ you can turn on D8 which enables this by default.
<AndroidDexTool>d8</AndroidDexTool>
Desugaring is the process of allowing Java 8 byte code to be converted into Java 7 compatible byte code. This is a Google process that performs the conversion and is part of the Xamarin.Android build process.
Then if the SDK doesn't have any dependencies, it should all work. If you have EmbeddedReferenceJars, then things get more complicated.
In Visual Studio 2017 you will experience errors similar to
Error: java.lang.TypeNotPresentException : Type io.reactivex.functions.Consumer not present
It will be unable to find these types in reference jars, because the desugaring processing isn't working properly. From Github Issues you eventually find the reason:
The first fix here is to add the `--classpath_entry` flag for every
`--input`, for some reason `Desugar` is not treating `--input` jars as
classpath entries
The bug is already tracked and fixed in Visual Studio 2019 Preview 2.
Now you switch to Visual Studio 2019 Preview 2 and you will come across this error.
Java.Lang.NoClassDefFoundError: Failed resolution of: Lcom/google/devtools/build/android/desugar/runtime/ThrowableExtension;
The desugaring processing is failing again because it needs this class to help communicate to the desugared code.
The class ThrowableExtension is actually found: https://github.com/bazelbuild/bazel/blob/master/src/tools/android/java/com/google/devtools/build/android/desugar/runtime/ThrowableExtension.java
You then take that Java class and you can compile it into a jar. A quick way to do it is copy that java file into a folder. Then inside that folder create a folder called output.
Call this command
javac -d ./output ThrowableExtension.java
Then move into the output directory and call this command
jar cvf desugar.jar *
It will create desugar.jar. Add that as an EmbeddedReferenceJar in your Android binding project. Your binding with Java 8 byte code with desugaring should now work.
Hopefully this might be resolved in a future Visual Studio version, so all these steps aren't necessary, but until then, at least you know what is happening and how to fix it.

CZKEM does not contain definition (zkemkeeper-related)

I am using the Standalone SDK from ZKTEco for a fingerprint scanner. I need to add some custom functionality.
I've downloaded the SDK along with the Demo project. Now when I try to build the Demo project, I get the following error
"Severity Code Description Project File Line Suppression State
Error CS1061 'CZKEM' does not contain a definition for 'SetUserValidDate'
and no accessible extension method 'SetUserValidDate' accepting a first
argument of type 'CZKEM' could be found (are you missing a using directive
or an assembly reference?)"
I have referenced the zkemkeeper.dll file in my project. I'm using VB 2017 on Windows 10. I've tried to look for Embed Interop Types property but I cannot find it in the properties ofzkemkeeper
How can I solve this issue? Any help would be appreciated.
Thanks
I order to make any project referencing the zkemkeeper compile, you need to register it in the windows system.
You should have received a bat file among the dll files called "Register_SDK" as shown in . This is used to register the zkemkeeper in windows. If not, then you must register it manually.
Please, read these posts:
Post 1
Post 2
There is also a starting guide for newbies already written by another member of this community, it´s written in c#.
Best regards.

Dotnetnuke 8 module development error in visual studio 2013

I have successfully installed DNN 8 and all configuration.
i am also referring video to develop module in visual studio.
https://www.youtube.com/watch?v=AKCYRPuoXF4
when i am trying to build the project then
error comes like:
Error 17 The type or namespace name 'DotNetNuke' could not be found
(are you missing a using directive or an assembly
reference?) C:\websites\dnndev.me\DesktopModules\MyDNNModule\MyDNNModuleModuleSettingsBase.cs 13 7 MyDNNModule
Please help to solve that.
thank you in advance.
Working with DNN8, sometimes I get a set of errors with message
The type or namespace name 'DotNetNuke' could not be found (are you
missing a using directive or an assembly reference?)
, probably 10 or 15 of them, and all located on top of one ascx file. (My dotnetnuke.dll is correctly placed in DNN's bin folder). Taking a better look (scroll down!), I can see that - except them - there are some more error messages (maybe just one of them), and that those additional errors are perfectly clear and logical. So I correct my source code in order to avoid those additional messages, and when I do that - those problematic messages also disappear!
In my case it took me a while to find the solution to this problem, since it only got triggered when I made a change to the View.ascx file.
You need the Visual Studio project to target framework to 4.5 instead of 4.5.1.
I got this solution from here.
Make sure to add a Reference to dotnetnuke.dll in the c:\websites\dnndev.me\bin folder
I honestly haven't done anything with DNN 8 CTP yet, I would stick with 7.4.1 until 8 is official released.

how to create QR code in windows phone 7.1

Please tell how to generate QR code in Windows Phone 7.1. I have tried this urlThomasVestergaard
I'm using Silverlight_ZXing_Core version v2.0.50727 library.
But When I used code from above link I have following issue
1.System.Windows.Media.Imaging.WriteableBitmap' does not contain a definition for 'SetPixel' and no extension method 'SetPixel' accepting a first argument of type 'System.Windows.Media.Imaging.WriteableBitmap' could be found (are you missing a using directive or an assembly reference?)
Please tell me how to resolve this as soon as possible.
Thanks
You should check WriteableBitmapEx library. It has extension methods for GetPixel() and SetPixel() in addition to other useful stuff.

WP7 System.Windows.Data unavailable to add as a reference

I need to use the IConverter class and understand its in the System.Windows.Data namespace.
But this is unavailable when I go to add this as a reference.
I understand from other posts that somehow it may be tied up with PresentationFramework.dll = but really not sure how I use this?
And still not sure why it is not available as are all the other references that I can easily add.
thanks
PresentationFramework.dll is an assembly that contains the WPF framework. From your question you indicate that you are using Windows Phone 7, therefore your project should reference assemblies that are specifically part of the Windows Phone 7 framework.
IValueConverter is in the System.Windows.Data namespace and is located within the System.Windows assembly. It is part of the .NET framework subset available to Windows Phone 7 developers, so you will have no issue using it.

Resources