Skip to content

Instantly share code, notes, and snippets.

@40
Created September 28, 2012 22:34
Show Gist options
  • Select an option

  • Save 40/3802421 to your computer and use it in GitHub Desktop.

Select an option

Save 40/3802421 to your computer and use it in GitHub Desktop.
Bound Invocation of the Media Previewer in BlackBerry 10 Cascades
// You are telling the Invocation Framework to use Media Previewer to open the file
void App::invokeBound(){
InvokeRequest cardRequest;
cardRequest.setTarget("sys.mediaplayer.previewer");
cardRequest.setUri("file:///accounts/1000/shares/videos/video.mp4");
InvokeManager invokeManager;
invokemanager.invoke(cardRequest);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment