Video editor

The video editor allows the user to change the saturation, brightness, contrast, and audio volume of a video clip. The video editor can also trim, crop, and rotate the video clip.

Editing a video

Here are the invocation attributes you use to invoke the video editor card:

Attribute Value
Target ID

sys.video_editor.card

Action

bb.action.EDIT

URI videoeditor:///path/to/content.mp4
MIME type video/mp4

When video editing is complete, the video editor returns the output path of the saved video file in the data property of the CardDoneMessage. The video editor sets the reason property to Canceled or Saved.

The following sample code shows how to invoke the video editor card:

bb::system::InvokeRequest request;

QUrl invokeUri = QUrl::fromLocalFile
("/accounts/1000/shared/camera/VID_20131224_132306.mp4");
invokeUri.setScheme("videoeditor");
invokeUri.setQueryDelimiters('=', ';');
request.setTarget("sys.video_editor.card");
request.setAction("bb.action.EDIT");
request.setUri(invokeUri);
request.setMimeType("video/mp4");
InvokeManager manager;
manager.invoke(request);

Last modified: 2014-01-23

comments powered by Disqus