Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • WebSphere Portal Family wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category IBM Redbooks: Building a Sample Website Using IBM Web Content Manager 7.0 IBM Redbooks: Building and Implementing a Social Portal IBM Redbooks: Developing Exceptional Multi-Channel Web Experiences V7: IBM Web Content Manager Product Documentation V7: IBM WebSphere Portal Enable for z/OS Product Documentation V7: IBM WebSphere Portal Express Product Documentation V7: WebSphere Portal Product Documentation V8: IBM Web Content Manager Product Documentation V8: IBM WebSphere Portal Express Product Documentation V8: IBM WebSphere Portal Product Documentation (includes z/OS) Custom Search Scope...
Search
Community Articles > IBM Accelerators for WebSphere Portal > IBM Mobile Portal Accelerator > Developing a mobile portlet to stream video content
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

IBM contributorMark Sandeep
Contribution Summary:
  • Articles authored: 5
  • Articles edited: 4
  • Comments Posted: 0

Recent articles by this author

Demonstrating the Media Access Proxy (MAP) Sample Portlet

This article showcases the MAP sample portlet of Mobile Portal Accelerator (MPA)

Developing a mobile portlet using JavaScript

The article describes the process of developing a mobile portlet using client side scripting with JavaScript

Performance Tuning MPA

This article provides guidelines for performance tuning of Mobile Portal Accelerator (MPA)

Developing a mobile portlet to stream video content

This article describes the process in streaming windows media video based content to mobile devices via a mobile portlet using XDIME

How To XDIME Enable An Existing Portlet

This article will show the procedure involved to enable an existing JSR 168 portlet application to support mobile devices via the XDIME markup.

Community articleDeveloping a mobile portlet to stream video content

Added by Mark Sandeep | Edited by IBM contributor Mark Sandeep on November 25, 2010 | Version 11
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
This article describes the process in streaming windows media video based content to mobile devices via a mobile portlet using XDIME
Tags: MPA, WEMPE, Mobile
ShowTable of Contents
HideTable of Contents
  • 1 Overview
  • 2 Step 1: Create a mobile portlet
  • 3 Step 2: Create an image component
  • 4 Step 3: Create the layout variants
  • 5 Step 4: Update XDIME to reference the URL video stream
  • 6 Step 5: Setting up the media server
  • 7 Step 6: Test the video stream

Overview



This article describes the process in streaming windows media video based content to mobile devices through mobile portlets. It uses Windows Media Services 9 series which is an end-to-end platform for streaming live or on-demand video or audio content.


Introduction

Mobile Portal Accelerator (MPA), based on device-independency, enables providers to create Web-based applications to a limitless range of mobile devices. It helps extend the capabilities of WebSphere Portal to mobile devices through device-independent Web authoring for virtually any mobile device. It uses a device independent markup language called XML-based Device Independent Markup Extensions (XDIME). Using Windows Media Services users can broadcast live or pre recorded video to mobile devices.


Prerequisites

This article requires the following development environment:

  • WebSphere Portal 6.1.0.1
  • Mobile Portal Toolkit 6.1
  • Rational Application Developer 7.1.0.2

For a media streaming server following test environment would be required:

  • Windows Server 2003
  • Windows Media Services 9 Series


Step 1: Create a mobile portlet


Let us start by creating a portlet project. We'll use mobile portal toolkit wizard to create the mobile XDIME portlet:

  1. Select File => New => Portlet Project.
  2. Specify the following attributes in the New Portlet Project wizard:

  • Project Name: StreamTest
  • Portlet API: JSR 168 Portlet
  • Portlet Type: Mobile Portlet

3. Click Next.



Step 2: Create an image component



An image component can refer to a set of image files, or variants that individually fit the profiles of several different devices. Here it is used to display a thumbnail preview of the video clip.

  1. In the StreamTest project, right-click the mcs-policies folder
  2. Select New => Other to launch the wizard
  3. Select MCS => Image Component
  4. Click Next



5. Specify a name for the component such as "thumbnail"
6. Click Next




7. Browse to the location of the device repository file
Ex: \MobilePortalToolkit6.0.1\DeviceRepository\devices.mdpr
8. Click Next
9. Enter the location of the image root directory, here a folder called "images" is created under "WebContent". This directory will contain an image preview of the video
10. Click Next




11. Set the variant selection criteria to default
12. Click Finish.




13. In the editor for the component created, select the variant and set the URL for the image content




Step 3: Create the layout variants



Targeted layout variants will be used to render video content for windows mobile phones via the object player control. For non-windows mobiles that support windows media video the content is viewed by launching the URL to the stream.


Layout for windows mobile



Layout for other devices




Additionally, a theme variant can be created to set the style of the page. In this portlet the theme named
“sample_theme.mthm” sets the font color to white.


Step 4: Update XDIME to reference the URL video stream



The content now needs to be referenced in the XDIME view.

  1. Open jsp => xdime => StreamTestPortletView.jsp in the source editor
  2. Modify the pane tag to reference the new layout. Update the code as shown:

 
<%@ page session="false" contentType="x-application/vnd.xdime+xml;
charset=UTF-8" pageEncoding="ISO-8859-1" %>
<canvas layoutName="/sample_layout.mlyt" theme="/sample_theme.mthm"
type="portlet">
<pane name="header"><strong class="white">
<br/>
Clip: Race Car <br/>
Duration: 5 mins <br/></strong>
<br/>
</pane>
<pane name="player">
<select>
<nativemarkup targetLocation="pane" pane="player">
<object id="video" width="320" height="240" classid="CLSID:6BF52A52-
394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<param NAME="URL" VALUE="http://wpmls11.in.ibm.com/racecar"/>
<param NAME="AutoStart" VALUE="false"/>
<param NAME="ShowControls" VALUE="true"/>
<param name="ShowStatusBar" value="true"/>
</object>
</nativemarkup>
</select>
</pane>
<pane name="footer">
<strong class="white">
<br/>
Powered by: Windows Media<br/>
Type: WMV <br/></strong>
<br/>
</pane>
<pane name="thumbnail">
<a href="http://wpmls11.in.ibm.com/racecar" >
<img src="/thumbnail.mimg" style="display: block; margin-left: auto;
margin-right: auto; border-style: none;"/></a>
</pane>
</canvas>


Step 5: Setting up the media server



1. In the console tree for windows media services, expand the server to which you want to add the publishing point, and
then click Publishing Points
2. On the Action menu, click Add Publishing Point (Wizard)
3. The Add Publishing Point Wizard appears; follow the instructions in the wizard to add a publishing point
4. The name of a publishing point is used in the URL to connect to the content, specify the name as shown below:




5. As the content streamed is an on demand video, specify the content and publishing point type as below:







6. Identify the location of the archived file and then click Finish
7. To enable HTTP streaming, set the WMS HTTP Server Control Protocol. Click the server for which you want to enable
HTTP streaming
* In the details pane, click the Properties tab
* In Category, click Control protocol
* In Plug-in, click WMS HTTP Server Control Protocol
* Click the Enable button


Step 6: Test the video stream



For windows mobile devices the video can be viewed through the player that is embedded in the page. The video is launched externally for other devices by clicking the image preview of the stream.


Pocket PC




Non – Windows Mobile (E.g.: Blackberry)






  • Edit
  • More Actions Show Menu▼


expanded Attachments (1)
collapsed Attachments (1)
Edit the article to add or modify attachments.
File TypeSizeFile NameCreated On
application/octet-stream 15 KB VideoStream.war 10/4/10 3:21 PM
expanded Versions (11)
collapsed Versions (11)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (11)Nov 25, 2010 2:29:13 AMMark Sandeep  IBM contributor
10Oct 13, 2010 2:56:19 PMMark Sandeep  IBM contributor
9Oct 13, 2010 2:51:47 PMMark Sandeep  IBM contributor
8Oct 6, 2010 5:13:57 AMMark Sandeep  IBM contributor
7Oct 6, 2010 5:09:23 AMMark Sandeep  IBM contributor
6Oct 6, 2010 3:48:07 AMMark Sandeep  IBM contributor
5Oct 5, 2010 3:55:24 PMMark Sandeep  IBM contributor
4Oct 5, 2010 3:34:26 PMMark Sandeep  IBM contributor
3Oct 5, 2010 3:16:43 PMMark Sandeep  IBM contributor
2Oct 4, 2010 3:55:52 PMMark Sandeep  IBM contributor
1Oct 4, 2010 3:49:47 PMMark Sandeep  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use