BlackBerry Browser Embedded Media Content Automatic Playback How-To

How-to

I am often asked by web developers “How can I use multimedia to offer a better experience for my users?” The most common method is to provide a link to the audio or video content that allows the user to download the file and play it back using the BlackBerry® Media Player. This requires the user to wait for the content to download (at least partially when using progressive download) and launching a new application. However, embedding audio or video playback within the browser session itself is a much better technique and provides a more seamless user experience.

To embed the multimedia file directly into your web page, use the “object” HTML element to specify the embedded object including the type tag specifying the mime type of the media you are trying to show. In the BlackBerry® Browser v4.6.0, the embedded media capability is enabled by default and there is a wide range of support for media types. Prior to v4.6.0, the end user must enable the embedded media option as shown in the Options screenshot below. A list of all supported media types on each device can be found at the link below.

BlackBerry Browser supported media types

A sample usage of the “object” tag within your webpage is:

The “object” element has a very broad set of attributes that you can use to customize the end user experience with more information, as outlined in the HTML “object” reference guide on BlackBerry.

Using this technique, your customers have an improved user experience, without the need to switch to another application, while hearing the multimedia content as soon as possible. Are your customers rocking out using this technique?

About Mike Kirkup

Mike Kirkup is the Director for the Developer Relations program at Research In Motion (RIM), which is responsible for managing the technical relationships and programs for RIM’s developer community worldwide. Mike and his team work with RIM’s developer community to provide support and guidance as developers work to integrate their applications to the BlackBerry platform. Mike joined RIM in 2001 as a Security Software Developer in RIM’s Wireless Security Group. As part of the Wireless Securty group, Mike contributed to the development of the BlackBerry Cryptography API, S/MIME and PGP implementations. Mike holds a Masters of Management Science and a Bachelor of Mathematics from the University of Waterloo.

Join the conversation

Show comments Hide comments
+ -
blog comments powered by Disqus