I'm currently working on a Windows Phone (8.0) application that can record video's. I want to save multiple video files in the Isolated Storage, but i can't find a way to view these saved files in a nice graphical interface with thumnails and information about length or size (much like the Windows Phone Camera Roll).
Could someone help me with this? There doesnt seem to be a lot of documentation on viewing the video files from the isolated storage.
Maybe it's something stupid, but i'm relatively new to developping for phones.
Thanks in advance!
1) I am not clear about your requirement but if you want see the Isolated Storage files in your machine you can use "Windows Phone Power Tools". For more info visit : http://msdn.microsoft.com/en-us/library/windows/apps/hh286408(v=vs.105).aspx
2) If you planning to make your own video gallary in Windows Phone app
Use AudioVideoCaptureDevice class to record videos and implement "PreviewFrameAvailable" event of it.
In that event, implement videoCaptureDevice.GetPreviewBufferArgb(argbPx) method.
For the size of video, when your read file from IsolatedStorage, you will get bytes array for data. That is the size of file. Covert it to Mb, Kb, etc format you want.
Related
I am making a Unity dictionary app. It contains 10000 pronunciation mp3 files.
Every time the user selects one English word, it will automatically pronounce the words.
I can successfully install the apk file to my mobile phone. Unfortunately, it failed and stopped to run. It may be due to out of memory!
Total apk file size is around 65M, which is ok to me. What is the best way to handle 10000 mp3 files in my case?
Check out this article:
http://blog.theknightsofunity.com/wrong-import-settings-killing-unity-game-part-2/
Maybe setting Load Type to Streaming can help.
I believe keeping 10,000 media file in the app itself is not a good idea. As you said the APK size is 65MB it's very big for a simple app. I will recommend to keep those files in web and use URL in the app to download them at the beginning. after downloading save them to SD card or phone memory and access them from the storage location. It will not crash your app.
Is there any API that enables me to access the phone's local storage files and folders ? I want to implement a file picker that displays the folders and files hierarchy just like they are in folder explorer:
Microsoft has released a free app called "Files" that does exactly what I want and more. Is it a special case or its possible for any developer?
Note: Im programming a WP8.0 app and not WP8.1. File Picker sample won't work for me! :)
There is no API in WP8 to list all the files in storage. In WP8 you can only access Audio and image files.
For more details refer this.
Does anyone know of a good database or NoSql engine for Windows Phone 8 that can be used by my app?
I need to be able to open a read-only database file from the SD card. It needs to be able to cope with storing blobs (png images) as I want to use it to provide map tiles for offline use. 100,000's of image tiles will need to be stored in the database.
I've experimented with SQLite for Windows Phone via C# wrappers, but I don't seem to be able to get it to work with a database file located on the SD card.
There are limitations with Windows Phone apps accessing files located on an SD card, but it is possible:
http://msdn.microsoft.com/library/windowsphone/develop/jj720573%28v=vs.105%29.aspx
Feedback from a Microsoft employee regarding my difficulties with SQLite:
Windows Phone apps can read specific file types from the SD card using
the Microsoft.Phone.Storage APIs.
I expect that the SQLite implementation for the phone tries to open
the database using standard C file API rather than using the Storage
objects and so requires that the database be in the Xap or isolated
storage and cannot access a database on the SD card (this is
definitely the case for SQLite for Windows Store apps).
Feedback from SQLite SDK community:
Apparently it should be fairly straight forward to add support to the SQLite SDK for someone with some C++ skills (mine are a bit rusty!):
Replies:
http://www.mail-archive.com/sqlite-users#sqlite.org/msg81059.html
http://www.mail-archive.com/sqlite-users#sqlite.org/msg81060.html
To my original question:
http://www.mail-archive.com/sqlite-users#sqlite.org/msg81055.html
From your comments, it sounds like a very different approach would work better.
Your requirements seem to be that the end user is the one responsible for putting the data on the card using their desktop/laptop. Then plugging the card into the phone.
If that's the case then it seems the best solution would be to provide a regular desktop app that grabs the images in a zip file then performs an unzip operation onto the destination card. Essentially, the app takes care of the operation.
If you need any meta data about those images, then a json or xml file should be included.
This should be far simpler than dealing with a database on a read only SD card.
The solution that worked for me was to take OpenMCDF and adapt it to work on Windows Phone 8. I've made the adapted OpenMCDF-wp8 solution available on GitHub: https://github.com/gavinharriss/OpenMCDF-wp8
I've also made my workaround to the Windows Phone 8 bug that prevents Seek() from working correctly with the Stream returned from the ExternalStorageFile class: https://github.com/gavinharriss/ExternalStorageFileWrapper-wp8
I'm writing an app that can record sounds as soundEffects from XNA. Is it possible to save those sound effects as say an MP3, WAV, or WMA file? I know with the Camera class in XNA, you can export the texture and image data as a jpg file, but is there a similar function with soundEffects? I know there's IsolatedStorage, but I need users to be able to plug their phone into the computer and be able to easily access their sound files and I'm pretty sure users have no access to the IsolatedStorge used by the app.
I want to provide a choice between streaming 'channels', if you will, in a web application. These are Windows Media streams of live events that are being broadcast from a Windows Media Services 9 distribution network.
I want to provide a relatively recent thumbnail image of the stream (as a user, you would expect to see this), but although I've seen this done in Flash on CNN and countless other sites, I've never seen this done with Windows Media.
I already have a C# / DirectX library that can extract a thumbnail from a WMV file, but obviously the stream doesn't come from a file if it's a live source.
My assumptions so far are:
Will need to run some kind of service application/daemon that will receive a stream into a Windows Media Player object and somehow take thumbnails if WMPlayer supports it...
-or-
Configure the streams to archive to file, and use the existing class library to take a peek at the last frame available in the archive file being written to get the thumbnail.
I would much rather do #1 because it seems like the clean solution, but don't know if/how WMPlayer supports grabbing a frame.
Are there better ways of doing this?
Not sure if using media player is a good idea in such case. I would look into this:
http://sourceforge.net/projects/windowsmedianet/