• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Overlapping NSMovieViews step on each other
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overlapping NSMovieViews step on each other


  • Subject: Re: Overlapping NSMovieViews step on each other
  • From: Gen Kiyooka <email@hidden>
  • Date: Tue, 29 Mar 2005 20:08:24 -0800


On Mar 29, 2005, at 1:46 PM, Ricky Sharp wrote:

On Mar 29, 2005, at 3:35 PM, David Hoerl wrote:

If I have two NSMovieViews which have some area of overlap, I was expecting that one would be dominant and the other one would play "under" it.

However, what I see is that they alternate writing to the screen.

How would one put a movie playing on top of another (exactly like the picture-in-picture feature of TVs)? Can this be done in one window or do I need to stack a second window on top of the first one (and use smoke and mirrors when the lower windows is moved around)?

QuickTime has the ability to install a callback (basically, a static C function) that will be called immediately
after the current frame has been blitted into the Window. You could install such a callback on the larger
frame, and blit a frame from the 2nd movie into a rectangular region. There is a 'video mixer' Cocoa-QuickTime
sample kicking around that probably has a bunch of other approaches based on GL.


Gen Kiyooka
Digigami

One method is to use an overlay window to show the smaller video. However, this may have performance issues. It's been a long time since I've done work with movies, but I seem to remember performance hits when you attempted to draw on top of a movie.

I would ask this in the QuickTime developer list as it may be more beneficial to add a second video track such that it's scaled and positioned correctly. That should fully take advantage of any hardware acceleration as ultimately you'd just have one frame at a time being rendered. And nothing will be drawn on top of the movie.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Overlapping NSMovieViews step on each other
      • From: Gen Kiyooka <email@hidden>
References: 
 >Overlapping NSMovieViews step on each other (From: David Hoerl <email@hidden>)
 >Re: Overlapping NSMovieViews step on each other (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: How to code a NSString literal with UTF8?
  • Next by Date: NSTableView and selectRowIndexes
  • Previous by thread: Re: Overlapping NSMovieViews step on each other
  • Next by thread: Re: Overlapping NSMovieViews step on each other
  • Index(es):
    • Date
    • Thread