I have an image saved from my game at Application.persistentDataPath + #"/p.png" I am trying to make this visible in iOS, I have managed it in android using the Android wrappers in Unity C# but I have no idea where to start with iOS.
Is it possible for me to pass the path to my Image to iOS so that it will show up in the Photos app? If I need to write my own plugin does anyone have any decent documentation on how it's done?
If I need to write my own plugin does anyone have any decent
documentation on how it's done?
That seems like the only way. Make a plugin that can read and write byte array to Picture folder on the iOS. You can also use already made one from here that cost $10. This plugins works with iOS, Android and Windows Phone 8 and I recommend you got with it.
The fact is that I can't write the whole process here. You first need to know how to write and read from the photo folder. Here is a link for that.
Now you need to know how to call a C# function fro Objective-C and vice versa. Many tutorials for this.
http://twnkls.com/2016/04/11/creating-native-plugins-for-unity3d/
http://alexanderwong.me/post/29861010648/call-objective-c-from-unity-call-unity-from
https://www.quora.com/How-do-you-call-native-iOS-functions-from-Unity
https://stackoverflow.com/a/30946257/3785314
Related
Hello and Good afternoon, I am stuck again. I want to access Images from the mobile device and populate it on the Xamarin form.However, It is quite easy and I have been able to do along side in asset and resource folder. Since, I am new to Mobile development, I don't know how to set the path and retrieve an image from the device memory(No clue to how it works).Could you please help me with it? The sole idea is to fetch the image from device memory(or SD card).
what you are looking for exists as a plugin which is called
Media Plugin
You can find more details about it and samples here
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.
I am making a .net web app. My attempt of taking a picture and trying to extract text from that picture has a terrible success rate. I see apps that let you scan a page into pdf. I want to use that approach using the users phone camera. I need help identifying the best free APIs that will help accomplish this.
I don't have any code yet; I don't want you to do it for me rather just help me find the resource. I'm new to this and here to learn and get educated.
The most popular open source ocr solution is Tesseract.
Here are 2 github links to Android and IOS open source solutions using Tesseract:
Android Github project
iOS Github project
I want to trim a MP4 video in a Windows Phone 8 Application.
Say when saving a video, I only want to save the last two minutes.
I have tried converting the video stream into a byte array and altering it. Since the mp4 format has headers and lot of other metadata it is not easy to achieve this fiddling with the byte array of the stream.
If it is a Windows Store app I can use MediaTranscode class in the Windows.Media.Transcoding API to achieve this like in the article below.
Trim Video Windows Store App Example
I pretty much want to do something similar in windows phone.
Is there a similar API I can use in WP?
I also have been looking into Microsoft Media Foundation to achieve this? I am no C++ expert and wanting achieve this in C#.
Any help or direction would be much appreciated.
Thanks
C# in general is not setup to do movie editing. It's older sibling c++ is where this done. I know that's not the answer you want to hear but sometimes that's the only reality there is. I was going to offer a hack to make it happen but after digging through the MSDN libraries I don't even see a worthy hack for this.
Find a C++ example and work from there. It will be a little headache but you are much better off than attempting to make C# bend beyond its elasticity point.
Here is a similar thread expressing your concerns.
http://forums.wpcentral.com/windows-phone-apps/204490-video-editing-apps.html
They have made the point that there isn't a single video editing tool on the entire market.
With how long the market has been around I would assume this is because it's not a capability in C#. Which happens to be 99% of the developers working on windows phone right now.
I recently found a way to convert video's through the FFMpeg converter through command line, but ive recently been interested in making a video player! and i heard that VLC player and various other systems use FFPlay, and i dont know anything about it! so i have some main points of interest..
Questions:
What exactly does the ffplay.exe do?
If it allows me to stream videos, how would i create an interface to C# to use that
How would i display the video on a windows forms app.
If one of those is not possible, im welcome to other alternatives.. or even perhaps writing my own. Suggestions welcome! :)
Edit: im looking for possible solutions with a framework requirement of 3 or below, and also would perfer to not make them install anything additional to my program.
I am not expert but based on what I know,
You can perhaps look at DirectShow technology for developing your video player as there are managed lib such as directshow.net available for it.
To my knowledge, FFPlay is GUI on top of FFmpeg libraries - the main part of FFmpeg is audio/video codec library supporting many formats including MPEG-4 implementation.
To use FFmpeg via DirectShow, you need another component known as ffdshow.