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

Java Development

New Developer
Posts: 48
Registered: ‎12-11-2008
My Device: Not Specified

"How to set Credential( )"

public void setCredentials(string credentials)


Sets the authentication credentials for the Player. Parameters: credentials - A String which will fill the "Authentication" field in an RTSP response. Since: JDE 4.3.0


hi guys,


Anybody know about how to set credentials ... Because when am opening rtsp connection i have bug  "Server blocked"

i cant able to open , ,, thats y..... can u give me some sample  coding for how to use this method.............

Expect uuuuuuuuu


BlackBerry Development Advisor
Posts: 15,809
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: "How to set Credential( )"

RTSP authentication is similar to HTTP authentication.  What you set here depends on what the server is expecting (HTTP basic or digest authentication).  Here is an example on using HTTP basic authentication that you could apply to a RTSP connection.


How To - Implement basic HTTP authentication
Article Number: DB-00468


Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.