Play video with transparent background IOS -


this question has answer here:

i play video transparent background. thing information found on internet "how make video background transparent", background of video transparent, need make background of player transparent. how do that? tried this:

nsstring *resourcepath = [[nsbundle mainbundle] pathforresource:@"new project 5" oftype:@"m4v"]; nslog(@"%@",resourcepath); nsurl *url = [nsurl fileurlwithpath:resourcepath]; nslog(@"%@",url);  movieplayer = [[mpmovieplayercontroller alloc] initwithcontenturl:url];  movieplayer.shouldautoplay=yes; movieplayer.controlstyle = mpmoviecontrolstylenone; [movieplayer setfullscreen:no animated:yes]; [self.view addsubview:movieplayer.view];  movieplayer.view.frame = cgrectmake(200, 600, 400, 300);  [movieplayer play];  movieplayer.view.backgroundcolor = [uicolor clearcolor]; for(uiview *asubview in movieplayer.view.subviews) {     asubview.backgroundcolor = [uicolor clearcolor]; } 

but doesn't work. displays black background.

here link real solution problem playing-movies-with-an-alpha-channel-on-the-ipad. blog post talking video on ipad, same library alpha channel support works on iphone. possible encode h.264 alpha channel support using method described in blog post comments.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -