Vmoox: Cross-platform Video Publishing Solution ... - pace university
Vmoox: Cross-platform Video Publishing Solution ... - pace university
Vmoox: Cross-platform Video Publishing Solution ... - pace university
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
private List<br />
get<strong>Video</strong>ChaptersAndStartTransformation(<br />
final <strong>Video</strong> video) {<br />
final Transformation transformation =<br />
Transformation.getInstance();<br />
video.set<strong>Video</strong>Chapters(transformation.get<strong>Video</strong>Chapters(video));<br />
// start transformation<br />
Thread t = new Thread(new Runnable() {<br />
public void run() {<br />
video.set<strong>Video</strong>Chapters(transformation<br />
.get<strong>Video</strong>ChaptersAndStartTransformation(video));<br />
video.setH264Ready(true);<br />
video.setHasChapters(true);<br />
DBProxy.getInstance().update<strong>Video</strong>(video);<br />
DBProxy.getInstance().update<strong>Video</strong>Chapters(video);<br />
}<br />
});<br />
t.start();<br />
return video.get<strong>Video</strong>Chapters();<br />
}<br />
After the video was fully transcoded the method change the state of the video object<br />
by indicating that the video is H.264 read and it has chapters and updates<br />
the DB with the new video setting and the new video chapters that was just<br />
created.<br />
- 50 -