iphone - Is there a possibility to play 2 videos simultaneously by url -
before start task want know possibilities playing 2 videos simultaneously(together) using url.
code i'm tried play video in partial screen:
player = [[mpmovieplayercontroller alloc] initwithcontenturl:[self movieurl]]; player.view.frame = cgrectmake(100, 150, 250, 300); [self.view addsubview:player.view]; [[nsnotificationcenter defaultcenter]addobserver:self selector:@selector(moviefinishedcallback:) name:mpmovieplayerplaybackdidfinishnotification object:player]; [player play];
error: error:request member 'view' in somthing not structure or union
anyone helpme...
not normally. mpmovieplayercontroller works connecting separate server process, actual video decompression. decompresses 1 stream @ time, 1 movie view can have playing content @ once.
your best bet use favorite video editing software combine both movies single movie, side side. no if want play/pause/rewind them separately. or, if 1 of movies small, convert still frames , use uiimageview's multi-image animation feature. playing h.264 remote url right out, though.
[edited add:]
this true ios 3.x, ios 4 , later have video support in avfoundation, specifically, avplayer , avplayerlayer classes. if use them construct movie views, can have more 1 going @ once, independently. don't stock mpmovieplayercontroller transport controls (play/pause/scrub bar); avfoundation have roll own if want similar.
Comments
Post a Comment