I am writing a Mac application that plays the streaming video.
I'll use Media player framework to play the video. Is there any way to record the video, save it and view it at a later time?
You're looking for the AVFoundation framework. Specifically, the AVCaptureSession class and related classes. Here's the manual.
Related
I'm planning to add more features to the current Chromecast android application that i have developed.
Does the chromecast mediaplayer api have some mechanism to trans-code the video on the fly? Also, is there an API which can help me display subtitles within the chromecast?
There is no api for transcoding. As for subtitles, it was added in the latest version of the SDK, you need to look at each SDK (receiver, iOS or Android) to see what has been added.
I'd like to make app for WP8, which will download and play movies. Android Market has lots apps of this type. But all of just get content, and pass it to video player (MX player for example), and format can be different (.avi, .mkv, .mpeg, etc.), but player shows the content without any problems. For exaple on my Samsung s5830, 1400 mb .avi movie plays good. As I can see - WP8 doesn't has custom video players.
Question: if I download in my app, from web, some movie in .avi format, could I play it on WP8? The same question for video stream for web.
You can play back any video file which is supported by the phone (this is documented on MSDN here). You can stream or play downloaded video from Isolated Storage using the MediaElement in the SDK and on WP8 I think there is a DirectX option too.
It's not enough to say that a file type is supported as these are just video "containers" - each container can contain audio and video of different codecs. MKVs don't look like they're supported at all however.
You can see this video format (codec) support varies between WP7 and 8 and even some kinds of phone dependent on what the chipset in the phone supports. (especially for the high bitrate HD codecs).
There is a nice framework that helps you on playing movies inside your app!
Take a look at it on codeplex http://playerframework.codeplex.com
And some documentation http://smf.codeplex.com/documentation
How do I stream YouTube videos in a Windows Phone app? I've tried using the MediaElement control and setting its Source property with the URL to a video and called the Play() method on the media element, but it didn't work. I want to create a simple video player that plays a video as it is being streamed. What kind of .NET classes do I need to work with?
YouTube does not expose its videos in a format which you can use to play them within Windows Phone applications, or any other kind of application for that matter. This is why services such as KeepVid, which provide 'hacks' for downloading YouTube videos, exist.
Please see my answer to this identical question from a few months ago over # Possible to play Youtube video in a wp7 app?
for ppt presentation i want to create video for ipod touch app.
is their any possibility to create video
from Xcode using simulator
or directly from device
or any other possibility
thank you very much
Please see: Is there a way I can capture my iPhone screen as a video?
This post describes many ways to capture video. It looks like there isn't a completely intuitive way to record the video, but this post lists some of the options others have used for their applications.
I have noticed that Quicktime 10 is now able to open Transport Stream Video files and also search reliably within that video file(Which is something that VLC can not seem to handle). Quicktime 7, on the other hand, is not able to open the same Video File.
When I try to open that same Video File within my Cocoa Application, which is using the QTKit framework, I get the error that the selected file is not a movie file.
Are there anyways to work around this?
Also, does anyone know the difference between the Quicktime Player and the QTKit that is supplied to developers? I made the assumption that the QTKit framework would backing the player but this does not seem to be the case.
QuickTime Player should use an almost identical backing as any other app on the system: QTKit. What might be happening is that QuickTime Player in Snow Leopard is using the newly introduced QuickTime X system, rather than the more venerable QuickTime 7. Read up on QuickTime X and see if that helps. (It should boil down to specifying that you want playback only when opening the URL).
It seems that QTKit by default uses QuickTime 7 but can be made to use QuickTime X by setting the QTMovieOpenForPlaybackAttribute attribute. This will disable some quick time features like setting the selection and playing the selection but QTKit will now be able to play Transport Streams.
You can read more about it with in the following pdf.
http://macguild.org/wwdc/wwdc-2009.pdf
I understand this is quite irrelevant to the question asked. However, I hope it will help someone wandering around to know how to open a URL from a Cocoa app with the default QuickTime Player application and not the ugly QTMovieView etc. I'd to spend a good deal of time and labour googling about it but all in vain.. I hope it will save someone's day.
NSString *url = [NSString string];
url = #"http://someurl";
[[NSTask launchedTaskWithLaunchPath:#"/usr/bin/open" arguments:[NSArray arrayWithObjects:url , #"-a", #"QuickTime Player", nil]]
waitUntilExit];