Play a video on the default media player in Universal App - c#

I would need to execute a function that plays a video in the default media player(Phone or Tab) from Universal Apps that uses Xaml and C#.
I don't want to embed the player .Actually my need is to open a new window with the default player and tell it to play the selected file.
All samples that I've saw in Google are to create an embedded player or send to a device Only.
Could you please give some suggestion for this issue. Thanks in Advance.

Related

Using SystemMediaTransportControls w/o local media

I am trying to use SystemMediaTransportControls on my Windows Phone to remote control my streaming music player device (I am not playing any media local to my device!). I am folowing the examples but have no success so far. The media controls do not appear on the screen.
Has anybody tried the same thing already? Is this possible at all, or does the media controls require a locally played music file to appear?
The system media transport controls are only shown when the MediaPlayer has media opened and/or is playing media. You can't use it for any other purpose.

Play a video on the default media player from a Windows Store App?

I want to implement a function that plays a video in the default media player from a windows store apps that uses Xaml and C#.
I don't want to embed the player I want to open a new window with the default player and tell it to play the selected file.
All the samples that I've found are to create an embedded player or send to a device.
Can anybody help me?
Thanks...

Allow camera and microphone settings programatically

Flash player has an option in Flash Player Settings manager> camera and Mic > camera and microphone settings > camera and microphone settings by site >
when clicks on this button it shows "website" and "camera and Mic access " we can manually add a website and access permission here.
Is it possible to do programmatic?
If so how...?
I prefer to get a code in C# or Java
It's not possible.
Access to the microphone is done through a permissions-based system in Flash itself. Similar to Google, Facebook & LinkedIn etc., it's done on a approval-from-user basis.
Please read the flash documentation for more information.
Thanks all, I have achieved it by editing sol file. even though it was a tedious task as no documentation available, achieved it with reading each character in the sol file and adding my site content to it.

how to set Windows media player 'express settings' programmatically?

Can anybody help me how to set the windows media player express settings programmatically? I have added reference for WMPLib and created a media player object and trying to play a file like wmp.OpenPlayer("c:\xxx.mp3");
Here the media player launches but on a Clean Windows XP SP3 machine, the media player asking to configure before playing the file. How to configure this programmatically or is there any way to skip this part and play the file?
It seems like it is possibe according to link. I haven't tested it though, so I'm not 100% sure if it works. You need to change some values in the registry. This page describes how to write to the registry. Hope this helps!

How can I control an instance of Windows Media Player in c#?

I'm trying to control windows media player in c#. That means, I want to be able to programmically play songs. To reiterate, I'm talking about the full version of WMP, not the component you can embed into a windows form. I can launch the WMP process just fine, the problem comes in actually controlling it as I can't think of any keypresses I can send to the player that would tell it to select a song and play music. I can do this in iTunes just fine by sending a spacebar key-press to the process, but not so in Windows Media Player. Does anyone have any ideas as per how I can control widows media player programmically in C#? Is there a special command I can send to the process to complete this task?
Here is a link do how to interact with WMP using p/invoke...
This is a question that's almost identical to this one that has already been answered in Stack Overflow.

Categories