What is the replacement of the MediaPlayerLauncher in Windows Phone 8.1 Universal apps?
Launching the URI opens the browser:
var options = new LauncherOptions();
options.ContentType = "video/mp4";
await Launcher.LaunchUriAsync(uri.Uri, options);
Or crashes when setting the ContentType (as shown above).
What's the solution (except to implement an own page with a player)?
There is no replacement for MediaPlayerLauncher in WP 8.1 RT
The only solution is using MediaElement to play video in app.
Related
I have published an Windows Phone 8.1 silverlight application in to the store. And I integrated Auto-launching apps URI associations for Windows Phone 8 with this build.
So that my application can be open from any other application by just calling the uri schema.
await Windows.System.Launcher.LaunchUriAsync(new System.Uri("mypp:"));
And it open my app from another application if it already installed on the device.
In case the user did not install my app, it shows Search for app in the store message dialog, and clicking on this store app get opens, searching for application and shows 'Sorry, no apps found'
What I missed to implement here? I need to show my app in the list when the they search in the store.
I checked with 'foursquare:' & 'metrotube' , It shows in the search list if it is not previously installed.
Please suggest what I missed here.
Unfortunately LauncherOptions is not supported for Windows Phone 8. Any alternative for this ?
My issue has been resolved by adding Launch options with the Launch Uri method.But it is supported in windows phone 8.1 version.
private async void LaunchChillr(object sender, RoutedEventArgs e)
{
var options = new Windows.System.LauncherOptions();
options.FallbackUri = new Uri("http://windowsphone.com/s?appid=0dff7a2f-51f8-xxxx-8ff7-5e9ddab540c0");
options.TreatAsUntrusted = true;
await Windows.System.Launcher.LaunchUriAsync(new System.Uri("myapp:"), options);
}
I'm creating a Windows Phone 8 app (Store apps) in which I will have some links for the user to open other apps.
My goal is to hide or show only the links for which I have apps that can handle them.
For instance, I have a link for
mymoneyapp://user=123
and another for
mymusic://user=123
So, if I have an app that can handle the mymoneyapp scheme I want the link to show if not then I hide it.
The only why I found to test this is using
LauncherOptions options = LauncherOptions();
options.FallbackUri = new Uri("http://myfallbackpage.com");
Launcher.LauncherUriAsync(new Uri("mymoneyapp://user=123"), options);
But in this case I get my fallback Uri launched if no app can handle that schema.
Is there any way just to test if an app can launch it without actually do it?
There is no API for this on Windows Phone 8. Windows 10 adds Launcher.QueryUriSupportAsync to allow checking if there is a handler before launching it.
https://msdn.microsoft.com/en-us/library/windows/apps/windows.system.launcher.queryurisupportasync.aspx
I need to add AdMob banner to my app. But I catch FailedToReceiveAd event with NetworkError message on emulator and on device. Example from official site behave the same way. WebBrowser and other network tasks work with network good.
Plese help, because i can't find any solutions of this proplem.
Select the mandatory and optional capabilities for your app. You can modify your app's capabilities by opening WMAppManifest.XML and selecting the Capabilities tab.
Also check adRequest.ForceTesting = true; it must be false
I am stuck in using facebook API in WindowsPhone8.1, i am unable to create a login button and authenticate user in WP8.1, and i couldnt search relative material on google too, even though i have done the same task in Windows 8.1 and Windows Phone 8 but not in Windows phone 8.1
here is my code that i have used for login process
App.fb.session = await App.fb.sessionclient.LoginAsync("user_about_me,read_stream,publish_action");
App.fb.AccessToken = App.fb.session.AccessToken;
App.fb.FacebookID = App.fb.session.FacebookId;
App.fb.expires = App.fb.session.Expires;
but i give "No Implemented" Exception
Thanks in advance
I'm not very sure about whether the WP8.1 has integrated the Facebook Authentication. As mentioned here it's still not.
I used this method in WP8 to get the user property :
object userHashId;
UserExtendedProperties.TryGetValue("ANID2", out userHashId);
_userId = userHashId.ToString();
msdn link
But I cannot find these in Windows Phone 8.1. Are there any new API for this
, or any alternative.
AFAIK it isn't possible under WinRT apps - the link you have provided stays for WP8.1 Silverlight Apps - then I suspect you are trying to develop under WinRT - API Reference.
You can read more from here, also here at SO and at this article.
Following this answer, maybe the code below will help you:
HardwareToken myToken = HardwareIdentification.GetPackageSpecificToken(null);
IBuffer hardwareId = myToken.Id;
There is also a Guidance on using the App Specific Hardware ID (ASHWID) to implement per-device app logic.