Re: Web Kit - playing HTML5 video in a separate window
Re: Web Kit - playing HTML5 video in a separate window
- Subject: Re: Web Kit - playing HTML5 video in a separate window
- From: Jens Alfke <email@hidden>
- Date: Fri, 09 Dec 2011 18:51:02 -0800
On Dec 6, 2011, at 1:43 PM, Nick wrote:
> Is it possible to make a desktop WebKit play HTML5 videos like an
> iPhone Simulator does it, when the "TV Out" window is opened?
Sure; WebKit can display anything Safari can.
> How does a mobile Safari manage to play the video in a separate
> window? (a screenshot: http://rghost.net/33556141/image.png).
There’s a delegate message you get when a WebView wants to open a new window. You implement that, open a window with a WebView in it, and tell it about the new view. I can’t remember exactly where this delegate message is, because there are so many delegate interfaces in WebKit, but it shouldn’t be hard to find.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden