Programmatically access all videos on wp8 - c#

I am currently developing an video backup/upload app which requires me to programmatically access all videos on wp8; irrespective of whether they are on phone or sd card.
Is there any way by which we can programmatically access all videos in wp8 ?
Well I do know that there is a way to integrate the app with the video hub. I also know that it is possible to save files using the app specific Isolated Storage.
But my boss requires that..
1) Videos list should be displayed in the app itself without integrating with the video hub.
2) App should not use only the videos from the Isolated Storage because that will greatly restrict the apps functionality.
I mean can I get the same list of videos as is shown the inbuilt video hub? If there are no managed options then can it be done using native code ?

Sadly there is no API in Windows Phone 8 for accessing videos just like you can do it with photos.
The all you can do right now is vote for this API to be added in future version of Windows Phone here or here on WPdev UserVoice page.
But there might be an option to access stored videos using the File type associations: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987(v=vs.105).aspx

Related

Share local SQLite database in 2 different xamarin forms apps

I am working on two different Xamarin forms apps and there is a need where I want to share the SQLite database of first app with second app.
I want to achieve Single Sign On approach for different xamarin forms apps,
Where user will only log in in any of the app and can stay logged in in both the two apps.
I found below link which stats in android we can share the database:-
Share LocalDB in two different android app
now I only need is similar thing in my xamarin forms app.
Any help will be grateful.
Thanks :)
Enjoy!
In the case of iOS, it's sandboxed so sharing data between applications are so difficult. But there are still some ways to share data between applications.
In your case, I recommend you using App Groups. An App Group allows different applications (or an application and its extensions) to access a shared file storage location, please refer to Working with App Groups for more details.
After Adding an App to an App Group we can use the methods below to share data between applications:
NSUserDefaults:
var userDefaults = new NSUserDefaults("<your group ID>", NSUserDefaultsType.SuiteName);
userDefaults.SetString("user123", "userId");
userDefaults.Synchronize();
NSFileManager:
NSUrl appGroupDirectoryPath = NSFileManager.DefaultManager.GetContainerUrl("<your group Id>");
NSUrl dataBaseUrl = appGroupDirectoryPath.Append("dbName.db", false);
//You can try to copy your dataBase file to this url.
Yes it is possible to share the data between two iPhone apps ...
If anybody need more information on this please go through the below link which will explain how to achieve...
Using your App Group
App Groups are the scheme iOS uses to allow different apps to share data. If the apps have the right entitlements and proper provisioning, they can access a shared directory outside of their normal iOS sandbox. Sandboxing still applies except for a single exception.
This is probably almost automatic, but when you get into iOS app provisioning you can't assume anything. What's supposed to happen is that you just turn on the "app groups" entitlement in Xcode for the app and for any extensions..
Link for:-
Sharing the app extension
#Land Lu - MSFT Thanks for the suggestion your answer led me to get it done.

UWP play ad before the video

I am building an app that has many movies trailer, and I am looking to support it by adding a video ad just before any video.
So, how to implement any video ad service, just like YouTube ads, to run before that videos.
Note, the app plays videos from the Web as direct links.
Thanks
The Microsoft Ad Client SDK supports video ads; this article has a walkthrough of how to use the Ad SDK to show them. You can manually show an ad before you let the user see the web video.
Windows 10 Anniversary Update also includes a new MediaBreak API specifically for showing video ads during other, longer-form video.

Facebook login via application or webview if app is not installed in Windows phone 8

Basically I want to achieve the same fucntionality which you normally see in android or ios devices. So if I click on login it should open facebook application(not webview) if facebook is installed but in case app is not installed it should open webview.
Currently it shows me a message do you want to search on store which I don't want.
Any help will be highly appreciated.
Thanks
Vinod
Windows Phone SDK only has the API to launch an app from another app which wouldn't work in your case since you would not be able to share session tokens.
Your best approach to achieving this would be to try out the third party Facebook SDK for .NET. Take a look at the Login API which seems to provide the ability to invoke the facebook application on the app and if not available would take the user to the store (LoginBehaviorApplicationOnly - Windows Phone 8.1).
I understand you would like to bring up the WebView if app isn't available but this SDK doesn't seem to have that functionality. You could contribute to the project or request a feature addition.
Hope this gives you a good start?

Uploading Windows Phone App to Windows store

I have recently developed windows phone application but im getting problem in uploading that app to windows store.
Please can any body tell me the process how to do that
Thanks in advance
Windows Phone Dev Center makes it fast and easy for you to submit or update your app. Complete these two basic steps, and your app will be reviewed promptly.
Create your app info
What's the name of your app? Which category does your app belong in? How much do you want your app to cost? After you fill in the blanks for these and other questions, you'll be ready to upload.
Upload and describe your package(s)
Upload the necessary packages for your app, fill in the relevant details (language, description, images, etc.), and submit.

Is it possible to post a picture to facebook,twitter using Microsoft.Phone.Task library in wp 7.5

I am using ShareLinkTask to post URL to social websites like twitter and facebook. Along with the URL ,i want to add a picture URI and the picture should display in sites.Is it possible ? Also is it possible to share when a different user is using the app ?since only one account is in sync and always the posting to sites happens with the account in sync with the phone.Can we have the login again while sharing so that the person using the app can post to his wall?
No. Tasks are somewhat more limited compared to a direct API layer implementation that you would get through a service-based SDK. They are always bound to the accounts that are associated with the device and you cannot log the user in/out with those from the app, unless the user himself decides to switch the accounts.
Also, at this point you cannot attach media content to a ShareLinkTask unless you already uploaded it through a service (such as IMGUR) and just posting a link to it.

Categories