Video

From WebOS101

Revision as of 06:14, 27 November 2009 by WebOS101 (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

Currently, there are not technically any services that deal directly with video on the Pre. The two service calls listed under video are actually calls to Launch and Open, which, respectively, launch the video app directly or which use the Open service to detect the file type and open the appropriate handler (video in our case). Use Open if you are unsure of the media type of the file you are opening.

Launch

this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'launch',
parameters: {
id: "com.palm.app.videoplayer",
params:{
target: "file://media/internal/myvideo.mp4"
}
}
});

Open

this.controller.serviceRequest('palm://com.palm.applicationManager', {
method:'open',
parameters: {
target: "file://media/internal/another_video.mp4"
}
});
Retrieved from "http://webos101.com/Video"
Personal tools