How to embed a video player in NSView? - objective-c

I want to embed a video player in an NSView. I also want to play different files, passing the path of these files. Is it possible to implement in a Mac application?

For QTKit, the QTKit Application Tutorial - Creating a Simple QTKit Media Player Application takes you through the basic steps.

Take a look at the AVFoundation frameworks now in 10.7 - AVPlayer looks like a good start.

Related

Want to create custom audio effect in native c/c++ for android

I am working on project which deals with audio video playback in Android KitKat. I am able to play video using video view and it's MediaPlayer helps to modify the audio track of video. I know about Playbackparams which can be used for pitch and tempo shifting but it's available from API 23.
I heard about a library called Sound touch which can be used for pitch and tempo pitching but the source code available for the same shows that it works for WAV files.
I am interested in using sound touch library as a audio effect library which I can place in Android's /system/etc/audio_effects.conf and place the SO file in /system/lib.
But I don't know how to turn this sound touch library in order to make it read audio from Android MediaPlayer as I am planning to call this library in the same as we use presetreverb/equalizer?
Kindly help me out if anyone has done such an implementation.

extracting a video from streaming server with AVfoundation in ios?

I was able to display a video using NSURL from a webpage into a UIView, but i need to be able to find a way to stream a video from a web server into my iphone using avfoundation. i am a little confused as to what i have to do in order to do this. any pointers would be helpful. thank you.
If you just need simple movie playing then take a look at MPMoviePlayerController. For more advanced needs start at AVPlayer

Mimic versatile behaviour of Apple's UIWebView with Sencha Touch

Given a URL to a...
PDF, Apple's UIWebView component will display the PDF in the PDF
reader.
video, Apple's UIWebView component will display the video in
the video player.
music file, Apple's UIWebView component will play
the music in the video player.
What is the best way to mimic this functionality in Sencha Touch?
Many thanks
EDIT: Also, how do you display a website in a panel? I've tried using an embed and an iframe, but these aren't scrollable on the device.
I don't understand, this should work just like that? Are you thinking of rendering pdf/video/music inside Sencha Application?
If yes, check out Sencha examples for audio/video. For pdf you will need some new code. I would suggest using pdf.js inside Sencha panel, haven't tried it though.
This was answered in sencha touch :: how to create a panel for website-preview inside iFrame.
Anyway, if you want to get the same effect as a UIWebView in senchatouch, I recommend using PhoneGap as long as your intention is that your webapp is used only on mobile devices. PhoneGap Plugins available to use the native WebViews each mobile OS. The plugin, both for IOS to ChildrenBrowser called Android. Sorry about the other systems can not help more.
Without a lot of hacky code, you can't.

Play video files on iPad

I am on the lookout for some sample code to help me learn how to play movie files (.mp4) on the iPad.
Can anyone help? I can only find a iPhone sample which doesn't work.
See the AVFoundation framework, particularly AVPlayer. There’s also a higher-level class called MPMoviePlayerController that offers simple video playback (it’s easier to use but cannot be customized).

Which Objective-C framework do I have to use to record my screen?

I'm already recording from my iSight from a python script using the pyobjc bridge and the QTKit framework.
Which framework/device/... should I use to capture the video of my screen instead of the built-in iSight?
P.S. I'm using Leopard (not Snow Leopard) and thus I don't have the Quicktime X API at my disposal.
OpenGL. There's sample code for this on Apple's developer site (SonOfGrab, IIRC).
As of Lion, you should use AVFoundation to record the screen.