Using libvlc on android with NDK - c

I am currently messing around a bit with libvlc on android using the NDK.
Well, I understand how to use native C code in an android app.
Now I would like to use the libvlc library to make a simple player which would read data from a socket.
Is it possible to use libvlc at that level? The problem I see is when it comes to set a window handler for libvlc to draw the image on.
Has anyone experienced with this that could give me some feedback?
Thank you.

You might be interested in this - https://bitbucket.org/tewilove/nyan.tv-jni/src
Edit: Looks like the nyan.tv link doesn't exist anymore. A possibly more 'official' sample is here -> https://bitbucket.org/edwardcw/libvlc-android-sample

Related

How to work with Flipkart Proteus Library in Java?

I am trying to work with Proteus library but i am not getting how to implement the functionalities of the library.
Can somebody please explain or share some java code to get me understand it better.
The best way to play around with Proteus is to clone the open source repo and run the demo. You will find instructions in the readme.
If there is something else in particular you should ask it as a question on SO.

How to lock screen orientation in Dart

How to lock screen orientation?
Tried this code, but seems, that I use it wrong... Cause it doesnt work on my android smartphone...
window.screen.orientation.lock(window.screen.orientation.type);
There is currently no way to do that in Dart.
https://github.com/flutter/flutter/issues/6381
The issue also contains links how to do that in platform native code.
You can make such native available to Dart using a plugin https://flutter.io/developing-packages/#plugin

How to get a picture from a kinect with labview

My class and I are trying to make a robot, we need to be able to take a picture using a kinect in Labview. We know how to get a skeleton from the kinect, but we can't figure out how to take a picture/video. Is there a DLL we need to download? We can't find anything on the internet but we know it's possible to do in labview. So do we need to write any code in C? Im pretty good with C so don't restrict your answer to just labview. All relevant answers are welcome.
We can't find anything on the internet but we know it's possible to do
in labview.
Personally, I have no experience with this, but a quick "LabVIEW Kinect" search on Google turns up any number of results, including some which show video (example). Based on the videos and images I see there, it looks like they're using the IMAQ control to show the video, so I'm assuming you're going to need the vision toolkit for that. If you have an academic license, you might already have that, but even if not, you could try asking your local NI office for one, as they generally tend to support schools.
I would go on ni.com and search for LabVIEW Kinect. There are links over there like this:
Kinect LabVIEW Interface Using Microsoft Kinect API

Programming a usable window using C

So being new to the C language i want to program a simple window or GUI. are there any good web pages or books i could get to learn how to do this? I've searched around on the net and haven't come up with anything! or if someone could send me on the right track like what to #include and maybe some important commands that i will need that would be awesome! thanks!
Check out GTK. You didn't say what OS you are using. GTK is cross platform, but easiest to use on Linux.
You need a gui toolkit, you can either use one built into your OS (eg the Win32 API on windows) or pick a platform independant one
Qt http://qt.nokia.com/ is probably the most popular full featured one, or you can start with something quicker and easy like http://www.fltk.org/

How to implement DirectShow Library to build a WPF Application

How to implement DirectShow Library to build a WPF Application that can make
1. capture the video from webcam
2. screen capture to a video file
I try to find example code for the absolutely beginner
This codeplex project (Touchless) should give you a head start. It is pretty easy to look at the code and see how it works.

Resources