01-05-2009 02:47 PM
I've tried to create the Player object in my application to play an audio file I have on a streaming server. I am able to successfully do it through wifi (by appending the interface=wifi parameter) but when I do it through the carrier network (by appending the connectionUID=[...]), I get an error code of 8. Does anyone know what this error code means? I am using a BlackBerry Bold on the AT&T network.
I used the following knowledge base article to retrieve the connectionUID for AT&T:
which turns out to be "WAP2 trans".
Solved! Go to Solution.
01-08-2009 11:38 AM
Here is a listing of all of the error codes you can receive from the PlayerListener ERROR constant which are also reflected in the updated Javadocs for the 4.7 release.
RIM Implementation NoteThe String object specifying the error may be a numerical error code, in which case it corresponds to one of the errors below:
|1||Media player busy: the media player is currently performing an operation that precludes the requested operation.|
|2||Invalid parameter: a parameter was specified with an invalid value.|
|3||Insufficient memory: there is insufficient memory to perform the requested operation.|
|4||Need more data: playback cannot proceed until the streaming source provides more data.|
|5||Unspecified: some error occured which does not fit into any other category.|
|6||Format: an error in the media file was detected.|
|7||No server response: a server has stopped responding.|
|8||Connetion lost: the current connection has been dropped.|
|9||DNS resolve error: an invalid URL has been detected.|
|10||Unseekable: the media player needs to seek in the file in order to access headers, but can't since the file being played is unseekable.|
|11||Connection timeout: the (streaming) server is unreachable.|
|12||No rights: indicates the DRM agent wasn't able to find a valid digital right in the media.|
|13||General client error: the streaming server rejected the streaming request.|
|14||Server error: an error occured on the streaming server while streaming.|
|15||Payment required: payment is required to stream this item from the server.|
|16||Forbidden: the streaming server has rejected the streaming request for security reasons.|
|17||Client file not found: the item required to stream doesn't exist or has been removed from the server.|
|18||Client proxy authentication required: device needs to authenticate with a proxy server before streaming.|
|19||Client request URI too large: the request URI sent to the server is too large.|
|20||Not enough bandwidth: there is not enough bandwidth to support streaming.|
|21||Client session not found: streaming session has been removed by the server (e.g.: when paused for too long).|
|22||Unsupported transport: the streaming server/network doesn't support UDP/TCP streaming.|
01-08-2009 11:46 AM
Thank for the quick response! Now, is there any reason why the Player would return an error code of 8 on an rtsp stream that works successfully through the browser? I've been working with a colleague of yours, bzubert, to try and figure it out but to no avail. I've successfully gotten it through wifi but not through the carrier network.
02-24-2009 09:13 AM
I did finally get it figured out. The parameters I was passing in after the rtsp URL were incorrect and after I passed in the proper parameters, got the streaming to work.
What parameters are you passing in and what phone/carrier/platform are you using?