iPad Video with Transparency

后端 未结 5 1721
一生所求
一生所求 2020-12-15 05:11

is it possible to have a QuickTime video with alpha layer (transparency) play on top of a static dynamic background UIView (i.e. a view that changes occasionall

5条回答
  •  [愿得一人]
    2020-12-15 05:53

    MPMoviePlayerController has a backgroundView property. The docs state:

    This view provides the backing content, on top of which the movie content is displayed. You can add subviews to the background view if you want to display custom background content.

    I haven't tried it, but if the video content itself has alpha, it sounds like this view should show up. If you set that view to clear, it may just work...

提交回复
热议问题