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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
shafich
Posts: 74
Registered: ‎01-12-2012
My Carrier: Developer

BrowserField not loading flash items

Hello, I made a mobile web that I would like to put in my blackberry application. So I used BrowserField, however the flash videos/items do not load, althougth they load in the mobile's defualt browser ....

Any idea as to what I can do to fix this ? is it normal ? should I add any specific config ?

All help is appreciated. Thanks in advance for every reply.

This is my code: 

===============================

public MyScreen()
{
BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();
myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER);
 //myBrowserFieldConfig.setProperty(BrowserFieldConfig.USER_SCALABLE, Boolean.TRUE);

BrowserField browserField = new BrowserField(myBrowserFieldConfig);

add(browserField);
browserField.requestContent("http://my.domain.com");
}================================

 

Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011

Re: BrowserField not loading flash items

Hi @

 

AFAIK, videos and flash are not supported in BrowserField.

 

You can try and detect the content type and open the video player or the default browser.

 

E.

 

Please use plain text.
Regular Contributor
shafich
Posts: 74
Registered: ‎01-12-2012
My Carrier: Developer

Re: BrowserField not loading flash items

Ok, Thanks for the information...

But can you direct me a little bit more details.. ?

1.how can I detect the flash Items in the html content using java. ( is thr any link/tut u can refer me to please.) 
2.And When I do detect the content should can I launch the video within my app.

Thanks :smileyhappy:) really appreciate your help. 

Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011

Re: BrowserField not loading flash items

Basically, flash is a resource and video can be either resource or a link.

 

The ProtocolController handle both of these options.

 

Check out this link for some nice browserField features (including the controller):

http://www.scribd.com/doc/55598747/Dev-49

 

Hope that helps,

 

E.

Please use plain text.