Using Audio And Video In A Blackberry Application; Accessing Stored Media; Access Media On A Blackberry Smartphone; Access Media On A Microsd Card - Blackberry JAVA DEVELOPMENT ENVIRONMENT - - MULTIMEDIA - DEVELOPMENT GUIDE Manual

Multimedia development guide
Hide thumbs Also See for JAVA DEVELOPMENT ENVIRONMENT - - MULTIMEDIA - DEVELOPMENT GUIDE:
Table of Contents

Advertisement

Using audio and video in a BlackBerry
Application

Accessing stored media

Playing media in the BlackBerry Browser

Playing media in the media application
Creating a BlackBerry Application that plays media files
Record audio on a BlackBerry smartphone
Send audio to a Bluetooth enabled headset
Accessing stored media
You can create a BlackBerry® Application that uses the
media stored on the BlackBerry smartphone or a microSD card.

Access media on a BlackBerry smartphone

>
Invoke
Connector.open()
on the BlackBerry® smartphone.
FileConnection fconn = (FileConnection)Connector.open("file:///store/home/user/audio/
newfile.mp3");

Access media on a microSD card

Connector.open()
>
Invoke
on the microSD card.
FileConnection fconn = (FileConnection)Connector.open("file:///SDCard/music/newfile.mp3");
Playing media in the BlackBerry Browser
A BlackBerry® Application can use the methods of the
the BlackBerry® Browser.

Play audio in the BlackBerry Browser

Browser.getDefaultSession()
1.
Invoke
BrowserSession soundclip = Browser.getDefaultSession();
. Pass the following parameters: the file protocol and the location of the media file
. Pass the following parameters: the file protocol and the location of the media file
Browser
.
Connector
FileConnection
class and
class and
BrowserSession
2
interface to access
class to play media in

Advertisement

Table of Contents
loading

This manual is also suitable for:

Java development environment

Table of Contents