Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

How do you Invoke Sys Video App

In my app I want to be able let the user see the videos that they have taken from within my app.  I thought I could invoke the system video player as a card but it isn't working.  Should it work?

InvokeManager* invokeManager = new InvokeManager();
	InvokeRequest cardRequest;
	cardRequest.setTarget("sys.videoplayer.app");
	cardRequest.setAction("bb.action.OPEN");

	invokeManager->invoke(cardRequest);

 


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Highlighted
Developer
Posts: 1,636
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: How do you Invoke Sys Video App


JaredCo wrote:

In my app I want to be able let the user see the videos that they have taken from within my app.  I thought I could invoke the system video player as a card but it isn't working.  Should it work?

InvokeManager* invokeManager = new InvokeManager();
	InvokeRequest cardRequest;
	cardRequest.setTarget("sys.videoplayer.app");
	cardRequest.setAction("bb.action.OPEN");

	invokeManager->invoke(cardRequest);

 


You don't need use the target.  if you invoke with a uri then the OS will find the default app.

 

Developer
Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: How do you Invoke Sys Video App

I attached a picture of the video app screen.  This is what I am trying to launch.  I don't have a specific file that I want to play....I want to let the user browse and share any of the videos the same way as the video app does.IMG_00000020-1.png


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing