is there a way to capture or to save the story board animation to media library in windows mobile? Currently i am working with an animation which changes the image for every second. How can i save this into a video format??
There is no mechanism to save any video content to Media Library.
Currently, using API, you can save pictures. Nothing else
Please see
http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.medialibrary_members.aspx
Related
I'm building a C# application (Windows Forms and .NetFramework 4.8). I use the Accord.Net framework to record a video in .mp4 format on the computer. After recording, I am using the Windows Media Player control to play the video that was recorded.
string applicationFolder = Application.StartupPath;
if (File.Exists(applicationFolder + #"\temp\videoTemp.mp4"))
{
axWindowsMediaPlayer1.URL = applicationFolder + #"\temp\videoTemp.mp4";
}
I need to edit this video by adding a text at the bottom for a specific time. During recording I can add text using the command below before saving the frame in the .mp4 file:
using (Graphics g = Graphics.FromImage(currentFrame))
{
//g.DrawString("test"...);
}
I thought of doing the same with the video that is played by the Windows Media Player control. For that I looked for some event of the player where I can get a pointer to each new frame of the video playing, but no success.
When creating a Windows Media Player Graphics, the text is reproduced in the video, but only when the application is running, the saved video is not affected.
using (Graphics g = axWindowsMediaPlayer1.CreateGraphics())
{
//g.DrawString("test"...); //it's show only when application is running
}
The question: Does Windows Media Player have any feature where I can capture the current frame of the video being played? If not, is there any way to recover a video saved on the computer, edit it frame by frame and then save it by overwriting the old video using C#?
Sorry for my English. Thank you everyone.
Does Windows Media Player have any feature where I can capture the current frame of the video being played?
No, it's a player. And even if it did, it certainly can't write the result. Since it's a player and all.
If not, is there any way to recover a video saved on the computer, edit it frame by frame and then save it by overwriting the old video using C#?
I generally use ffmpeg for that, it's not terribly difficult and it has hardware acceleration both for decoding and recoding built-in.
I am making a login screen for a mobile app in unity3d, that has a video keep on playing in the background and can work on iOS and Android. I have searched online and found out movie texture doesn't work on mobile.
Currently I only can play a video using Handheld.PlayFullScreenMovie, but it is not what I want. I want the video playing and still see the text and have button to click.
I see similar post Set a video as background. But I am using C#. Does anyone know how to do this in unity? Many Thanks!
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.
I am making a netradio app on windows phone, my problem is that netradio uses the RTSP audio format and native media player in Windows Phone does not support RTSP.
As a workaround, I have to navigate to a webpage that then handles the audio.
This works fine, and plays the radio, but the problem is that as soon as the app is put in the background the music stops.
Is there a way to keep the webbrowser audio playing?
You could use the BackgroundAudioPlayer within your solution as another project where you could go through a sample here.
And also the sample from Codeplex you can try the Windows Phone Streaming Media.
https://phonesm.codeplex.com/
Hope it helps!
There is no native RTSP support with BackgroundAudioPlayer. You would need to make your own MediaStreamSource implementation to be able to use the stream. At least I didn't find any public 3rd party solutions. Check this http://social.msdn.microsoft.com/Forums/sqlserver/en-US/e052ea29-53cf-4ebb-8558-742b67fc72ad/rtsp-support-in-wp8.
If you are up for the task of writing your own MediaStreamSource implementation, you can use this as starting point and study the RTSP protocol here.
Im making an app that should let the user see video from the camera on the back of the phone in a small frame in my app (300x300)
But im having some problems fetching the stream. I've tried a CameraCaptureTask but does not work on my phone. I seems to open the video app and them close it, returning to the app, right away
Check out the Basic Camera Sample from here: Code Samples for Windows Phone
It's an excellent, fully featured example of probably everything you'll need for your project.
Here's the 'walkthrough' version if you're interested: How to: Create a Base Camera Application for Windows Phone