Unity bitmaps implementation for android - c#

Hope you doing fine! I want to use bitmaps in my c# code in unity. But I can't implement bitmaps onto my code, because System.Drawing doesn't work in unity. Also my project is for android devices so I am looking for a solution for android. I couldn't find any useful stuff on the web. even if i did, i didn't understand. Thank you in advance!

Thanks to #jdweng for the link! It is
android.graphics.bitmap

Related

How do I use ImGui in SharpDX?

I am programming a game right now, and ran across an issue.
I cannot use ImGui, i tried ImGui.NET, ImGuiSharp, ImGui.NET.DirectX and none of which worked.
The issue was something about not being able to find the Win32 / Dx11 Entry points to the cimgui dll.
How do I use ImGui with DirectX / SharpDX?
Any Help appreciated!
Fixed it by writing my own wrapper, i will upload the source code tomorrow on my github https://github.com/pogrammerX

Unity android Native Camera as WebcamTexture

Can someone help me about to use the Native Camera of Android in Unity the same way we use WebcamTexture? I want the "camera preview image" in Unity as a texture2d or texture.
Thanks in advance.
I did it once using https://bitbucket.org/Unity-Technologies/graphicsdemos as starting point. You are going to be interested in the RenderingPlugin.cpp.
Back in the day I had to use code in Java as bridge to Android NDK since it was not possible to plug an ImageReader in the camera feed on the C level due to security reasons.
It looks like things got updated and it might be possible to simplify the architecture by using https://github.com/googlesamples/android-ndk/tree/master/camera.
Hope this helps.
ps-> In case you want to do a code walkthrough I put together an end-to-end demo here https://github.com/robsondepaula/unity-android-native-camera

Get system audio stream buffer for visualization

I tried getting the system output device stream buffer using NAudio but I had this problem:
C# Unity 3D NAudio throws NullPointerException while checking for default audio endpoint
The same exact code mentioned in that question works just fine in my windows forms projects(outside Unity).
NAudio would be the perfect solution for me, but it just doesn't want to cooperate with Unity for some reason. So is there any free alternative to NAudio or any other free possible solution for this problem?
I personally have used FMOD to great success, for help on how to integrate into unity you can look at an open source project that utilises it to great effect :) here: https://github.com/OrderOfThePorcupine/ProjectPorcupine.

Stream video to rtmp server in Xamarin.Forms.iOS?

I am currently working on a solution where i want to livestream from my app. I succesfully get my camerastream working with avfoundation. The next step in order to complete my task is to send my video frames to a rtmp server but I am not sure on how i can accomplish this in xamarin forms ios.
For swift there is a library called https://github.com/jgh-/VideoCore that solves this but do we have something similiar in xamarin (any library) or documentation on examples that tackles this issue?
Thanks a lot!
Maybe it's a bit late for you, but this can probably help someone who wants to do the same thing (like I did), you can use the Xamarin port of LFLiveKit:
https://github.com/rhedgpeth/Xamarin-LFLiveKit
You'll have to implement a custom renderer to use it with forms, but it's not too hard if you follow the sample project in the repository.

Creating audio visualizer using libvlc

I am trying to create a audio wave visualizer using libvlc. Have searched the net thoroughly but was unable to find any help. It would be really great if anyonce can help me out here.
Thanks in advance :)
I think, you can get waveform with the help of Stream to memory module (smem)
https://wiki.videolan.org/Stream_to_memory_(smem)_tutorial/
Have a look at MediaPlayer Class.
MSDN:
http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.aspx
It is a wrapper around Windows Media Player which will let you do in code most of what WMP can do.
If you are using .NET 2.0 you will have to look at Windows Media Player SDK.
In that case, this answer might be helpful for you.

Categories