Video

From WebOS101

Jump to: navigation, search

Introduction

For the Enyo kind, please see enyo.Video.

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"
}
});
Personal tools