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: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel
Accepted Solution

How to set title when use InvokeManager (MediaPlayer)

Hi Im using InvokeManager  to play video file (Media Player)

 

How I change the title when media player play the video (on Top)  -> it default use the name of file being played

 

but I want to change that

How to do that?

 

Thanks

Developer
Posts: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: How to set title when use InvokeManager (MediaPlayer)

Is there any method to do this?

Please help..

 

 

Thanks

Developer
Posts: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: How to set title when use InvokeManager (MediaPlayer)

Any idea how to do this?

 

Thanks

Contributor
Posts: 11
Registered: ‎08-27-2011
My Device: Blackberry Torch
My Carrier: Vodafone

Re: How to set title when use InvokeManager (MediaPlayer)

Try this

 

InvokeManager* invokeManager = new InvokeManager();
            InvokeRequest cardRequest;
            cardRequest.setTarget("sys.mediaplayer.previewer");
            cardRequest.setAction("bb.action.OPEN");
            cardRequest.setUri("***********Video url**********");
            QVariantMap map;
            map.insert("contentTitle", "My Title");
            QByteArray requestData = bb:Smiley TonguepsObject::encode(map, NULL);
            cardRequest.setData(requestData);
            InvokeTargetReply* reply = invokeManager->invoke(cardRequest);

 

 

Note: Mark ur post as solved, if this solved ur problem

Developer
Posts: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Hi Sri_yk   thanks a lot, your solution work.

Hi Sri_yk

 

thanks a lot, your solution work.