I would like to do video call from UWP PeerCC app to Browser or from HoloLens (HL) peerCC (unity) to browser.
With PeerCC-browser example I am able to call successfully from web-browser to web-browser but when I try to call from UWP peerCC sample (windows app), I am not able to see the remote stream at browser.
browser --> browser : works fine
browser --> uwp peerCC : at peercc i can see local and remote video but on browser side it just show local video.
HL --> browser same result.
It also did not show any error.
I am using this https://github.com/OpticalTone/PeerCC-Browser code sample for browser side.
I have tried to debug it with some log messages, I noticed that the
ontrack()
function {the code is below} called but the stream object has zero length.
//display remote track in the video element
pc.ontrack = function(event) {
videoRenderer = document.getElementById("rtcRenderer");
videoRenderer.srcObject = event.streams[0];
console.log("Remote track resceved");
document.body.style.cursor = "default";
};
updateServerStatus();
}
any idea what could be the potential problem will be highly appreciated.
Thanks
Related
I am using the dotNet sdk. All the images are stored in the wwwroot/Image folder i.e. Static folder.
When i am running the bot through emulator i.e. Locally it is showing the image.
But after publishing the application the image is not showing up.
when i debug program remotly then i am getting the proper image path: D:\home\site\wwwroot\wwwroot\Image\pdf.jpg
, which is currect url but sill image is not showing up.
new AdaptiveColumn() {
Width=AdaptiveColumnWidth.Auto,
Items = new List<AdaptiveElement>()
{
new AdaptiveImage()
{
//Url = new Uri(iconUrl),
Size = AdaptiveImageSize.Small,
Style = AdaptiveImageStyle.Default,
UrlString=iconUrl
}
}
},
Any location starting with a drive letter like D is a local path and not a remote URL. You should never use a local path when trying to identify resources on a server, since your bot is communicating with a client on a totally different machine.
Please familiarize yourself with this document to understand how static files work in .NET Core: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files
Once your web app is running on a server, you will be able to access the image using HTTP/S. If you're running the bot locally then the URL should look something like http://localhost:3978/Image/pdf.jpg and if the bot is deployed then it should look something like https://rajatbot.azurewebsites.com/Image/pdf.jpg. Test the URL by pasting it into a browser to make sure it works, then put the URL in your card.
I need to write an Cortana extension (app, experience, plugin, etc..) that will receive a query from the user and based on this query construct an webpage URL and open that URL in the default client browser. My question is, can an App do that? Could you share any code example? Can this app run both on cell phones and windows laptops/desktops?
I believe so. You can create an app that implements Windows.ApplicationModel.AppService IBackgroundTask cortana will activate your background service if you register a VCD file with the right 'ListenFor' commands. You wire your app via "VoiceCommandService Target=".
Your background app would then launch the default browser.
Here is a step by step guide.
Here is the code:
string uriToLaunch = #"http://www.bing.com/";
var uri = new Uri(uriToLaunch);
await Windows.System.Launcher.LaunchUriAsync(uri);
What I'm trying to do is to, from a Web Service (WCF), give a remote computer (the Web Service Consumer) the instruction to open its default Web Browser (be it Internet Explorer, Firefox, Chrome, etc.), navigate to a certain web page and keep monitoring the events of that browser so that I can capture a certain value from the Document Title at a certain point, and do stuff with it.
I'm already able to send the command to open Internet Explorer and navigate to a URL, from the Web Service to the remote computer (my consumer), but I don't like the approach since I can't monitor the Document.Title property for changes nor access its value at any given time. Here is an example:
using System.Diagnostics;
public void DoIt();
{
Process batchProcess = new Process();
batchProcess.StartInfo.FileName = "iexplore.exe";
batchProcess.StartInfo.Arguments = "http://whatever.com";
batchProcess.Start();
}
This opens up Internet Explorer on the remote machine and navigates to the Url I give it, but I can't keep watch for the Browser's Events or Properties Values....
Can somebody help? ;-)
I don't think you can access information in one application (the web browser) from another (the WCF client) like that, and it's certainly not possible to do it without knowing what the user's default browser is.
You might have more luck using a WebBrowser control (WPF or Windows Forms), which embeds Internet Explorer's engine into the application and allows you access to the document title.
Im trying to play a video clip in my Silverlight Application.
var video_path = "http://mydomain.com/path-to-media/file.wmv";
mediaPlayer.AutoPlay = true;
mediaPlayer.Source = new Uri(video_path);
mediaPlayer.Play();
MessageBox.Show(mediaPlayer.Source.ToString()); //test the source string
But the video does not start or even display.
Is there a step I have forgotten ?
mediaPlayer is a simple Silverlight MediaElement
Update
When I attach a media Failed event and display the error exception i get
4001 AG_E_NETWORK_ERROR
It's because your silverlight application has a different URL scheme, and cross-scheme access is not allowed for media.
If the video URL starts from http://, your application URL should start from http:// too.
I think your application URL looks something like file:///C:/project/page.html. If so, you should add a ASP.Net website to your solution and host your Silverlight application there so that your URL looks like http://localhost:25252/page.html.
I currently developing a ASP.NET web application.
The application is designed for Google Chrome. I would like to pop out IE when printing is involved because Chrome lack preview etc. at a button click the IE should open. Here's the code:
protected void btn_print_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("http://localhost/storeapp/printpage.aspx?orderno=" + Request.QueryString["orderno"].ToString() + "");
}
Here I have passed a particular orderno to the URL. But when I click nothing happens. I have set IE as default web browser. Why is this?
There is no error shown? Any ideas?
What you are trying to do will only open an IE window on the SERVER not on the client machine. You cannot (for obvious security reasons) start a process on the clients machine.
You cannot force a client browser to open a link in a different browser.
You cannot force server to open process on Client side, what you have now is opening it on the Server side which is not desired behavior I believe.