live-connect-sdk

Connect SDK: share local image

我是研究僧i 提交于 2020-01-25 11:07:02
问题 I use Connect-SDK-Android-API-Sampler and share an image into a TV using mediaURL "www.example.com/image.jpg". How I could share my local image from device? 回答1: A solution of my problem is Web Server. I used a NanoHTTPD library. public class WebServer extends NanoHTTPD { private int port; public WebServer(int port) { super(port); this.port = port; } @Override public Response serve(IHTTPSession session) { Method method = session.getMethod(); switch (method) { case GET: String path = session

Connect SDK: share local image

家住魔仙堡 提交于 2020-01-25 11:05:08
问题 I use Connect-SDK-Android-API-Sampler and share an image into a TV using mediaURL "www.example.com/image.jpg". How I could share my local image from device? 回答1: A solution of my problem is Web Server. I used a NanoHTTPD library. public class WebServer extends NanoHTTPD { private int port; public WebServer(int port) { super(port); this.port = port; } @Override public Response serve(IHTTPSession session) { Method method = session.getMethod(); switch (method) { case GET: String path = session

Metro App - How to detect if logged in with Live ID or Local Account

泪湿孤枕 提交于 2019-12-20 15:25:55
问题 I am building a Metro C# SkyDrive API on top of the Live Connect SDK (http://msdn.microsoft.com/en-us/live/default) - in Windows 8 the user has the choice to SignIn to the Windows 8 machine with either a LOCAL account, or a LIVE account. When using the Live Connect SDK, if I call // assume wlscopes is properly set LiveAuthClient liveAuthClient = new LiveAuthClient(); LiveLoginResult loginResult = await liveAuthClient.LoginAsync(wlscopes); // do some stuff on skydrive liveAuthClient.Logout();

why does async call LiveConnectClient.GetAsync block executing thread?

半城伤御伤魂 提交于 2019-12-14 03:59:01
问题 I have Windows Store MonoGame (based on XAML MonoGame template in Visual Studio 2012) app. When I connect to LiveConnect, system does all things in background, but when I call LiveConnectClient.GetAsync to get user info it sometimes (and usually) blocks the caller thread, even though it is called using await. Is there any way to make GetAsync call really async? Maybe I should create a new thread to call it? Here's the caller code. It is called inside MonoGame draw thread (can't access main UI

Error When uploading file with BackgroundUploadAsync in WP8?

一个人想着一个人 提交于 2019-12-11 16:52:22
问题 I want to upload my recorded file to skydrive and I am using these codes For recording; void StopRecording() { // Get the last partial buffer int sampleSize = microphone.GetSampleSizeInBytes(microphone.BufferDuration); byte[] extraBuffer = new byte[sampleSize]; int extraBytes = microphone.GetData(extraBuffer); // Stop recording microphone.Stop(); // Create MemoInfo object and add at top of collection int totalSize = memoBufferCollection.Count * sampleSize + extraBytes; TimeSpan duration =

Live Connect Authentication Token for use on Azure Mobile Services (REST)

馋奶兔 提交于 2019-12-01 12:54:58
I have a simple Windows Forms Application to try Live Connect and Azure Mobile Services. Not a Windows 8 Modern App. I'm trying to make use of some sample code for Live Connect and have been able to get the sign-in part to work fine. In the end I get an access_token after signing in. On the Mobile Services side in the same Windows Forms Application, I'm trying to use REST to login. However, I seeem to get an "401 Unauthorized" response because "The authentication token's signature was malformed or signed by a different key" JWT seem to have two '.' in the token. SWT seem to have '/', '+' and '

Live Connect Authentication Token for use on Azure Mobile Services (REST)

自作多情 提交于 2019-12-01 10:58:41
问题 I have a simple Windows Forms Application to try Live Connect and Azure Mobile Services. Not a Windows 8 Modern App. I'm trying to make use of some sample code for Live Connect and have been able to get the sign-in part to work fine. In the end I get an access_token after signing in. On the Mobile Services side in the same Windows Forms Application, I'm trying to use REST to login. However, I seeem to get an "401 Unauthorized" response because "The authentication token's signature was