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
New Developer
dhaneshshastri
Posts: 24
Registered: ‎12-19-2012
My Device: BB 10
My Carrier: BB

Is there a Video Player View (with Player UI) ?

Hello All,

I am developing an application and in need of having a media player.

I have explored the Documents and sample codes but havnt found something like 'Video Player View'

Which can be used in QML directly with a source and have the Default controlls like Play,Pause,Next,Privious,Slider etc. 

 

I may be missing some thing while exploring documents as I am new to this.

Please guide me or refer a Sample code if available.

 

 

Regards,

Dhanesh Shastri

Please use plain text.
Developer
ekke
Posts: 1,428
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Is there a Video Player View (with Player UI) ?

I'm doing this with some C++ code

void OpenDataSpace::invokeBoundMediaPlayer(const QString& uri) {
	InvokeRequest cardRequest;
	cardRequest.setUri(uri);
	cardRequest.setTarget("sys.mediaplayer.previewer");
	mInvokeManager->invoke(cardRequest);
}

 then the player comes in as a Card with all the controls

for the user it looks like the player is part of your app

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.