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 Contributor
Posts: 4
Registered: ‎07-06-2012
My Device: Playbook
My Carrier: 6136009997

Play Video using Cascades

Hi Community!

 

I'm trying to create player for BB 10 using casecades as an UI. The problem that I face is that I cannot combine Cascades with native SDK. Does anyone know how can I use screen_window_t within my cascades window, so it does not owerwrite it? Or maybe I shall not use screen_window_t  at all?

 

Thanks,

Z

New Contributor
Posts: 4
Registered: ‎07-06-2012
My Device: Playbook
My Carrier: 6136009997

Re: Play Video using Cascades

Anyone? Please I need help!
BlackBerry Development Advisor (Retired)
Posts: 60
Registered: ‎05-10-2012
My Device: Blackberry 10 Alpha
My Carrier: none

Re: Play Video using Cascades

Hi Z,

 

You can do this by using the ForeignWindow control. It essentially punches a hole in  cascades allowing you to access the underlying screen context. Please take a look at the ForeignWindow Sample on GitHub

 

https://github.com/blackberry/Cascades-Samples/tree/master/helloforeignwindow

 

and there is also a more detailed knowledge base article on using ForeignWindow and OpenGL in Casades. http://supportforums.blackberry.com/t5/Cascades-Development-Knowledge/Using-OpenGL-in-a-Cascades-For...

 

with either of those you can access the screencontext to achieve what you need to do.

 

Good Luck!

Selom

New Contributor
Posts: 4
Registered: ‎07-06-2012
My Device: Playbook
My Carrier: 6136009997

Re: Play Video using Cascades

Hi Selom,

The problem is that when I use mm-renderer to play my video, it overlays cascades... If I don't use mm-renderer everything works fine. Do you know any way how can I redirect mm-renderer to draw in foreignWindow?

Thanks,
Z
BlackBerry Development Advisor (Retired)
Posts: 60
Registered: ‎05-10-2012
My Device: Blackberry 10 Alpha
My Carrier: none

Re: Play Video using Cascades

Hi again,

 

I haven't used the mmr renderer in the way you suggested myself, but you should be able to manipulate things like the size and zorder between cascades and the underlying screencontext from this documentation

 

https://developer.blackberry.com/native/beta/documentation/com.qnx.doc.mme.mmrenderer/topic/managing...

 

Selom