java - Composite recording creates empty video -


here code create composite video recording using java.but creates blank video .not playing stream.why?

mp       = kurento.createmediapipeline();  webrtcendpoint webrtcepred = new webrtcendpoint.builder(mp).build(); webrtcendpoint webrtcepgreen = new webrtcendpoint.builder(mp).build();  composite composite = new composite.builder(mp).build(); hubport hubport1 = new hubport.builder(composite).build(); hubport hubport2 = new hubport.builder(composite).build(); hubport hubport3 = new hubport.builder(composite).build();  recorderendpoint recorderep =     new recorderendpoint.builder(mp, recording_path + "twoside" + recording_ext).build();   webrtcepred.connect(hubport1); webrtcepgreen.connect(hubport2);  hubport3.connect(recorderep);  recorderep.record(); 

i change code follows,now working fine

  // media pipeline     pipeline = kurento.createmediapipeline();       composite composite = new composite.builder(pipeline).build();      hubport hubport1 = new hubport.builder(composite).build();     hubport hubport2 = new hubport.builder(composite).build();     hubport hubport3 = new hubport.builder(composite).build();      recorderep =  new recorderendpoint.builder(pipeline, recording_path + "twosidess" + recording_ext).build();      webrtccaller.connect(webrtccallee);     webrtccaller.connect(recorderep);      webrtccaller.connect(hubport1);     webrtccallee.connect(hubport2);      webrtccallee.connect(webrtccaller);      hubport3.connect(recorderep);     recorderep.record(); 

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -