1bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik/* Copyright (C) 2014 The Android Open Source Project
2bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik *
3bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik * Licensed under the Apache License, Version 2.0 (the "License");
4bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik * you may not use this file except in compliance with the License.
5bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik * You may obtain a copy of the License at
6bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik *
7bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik *      http://www.apache.org/licenses/LICENSE-2.0
8bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik *
9bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik * Unless required by applicable law or agreed to in writing, software
10bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik * distributed under the License is distributed on an "AS IS" BASIS,
11bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik * See the License for the specific language governing permissions and
13bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik * limitations under the License.
14bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik */
152f5b057da7d05d5d699a272aa24fd7c97cdda820RoboErik
16bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErikpackage com.android.onemedia;
17bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik
1845f7ee8201efbda59b57b1fe637a1b9ffef25bb6Daniel Sandlerimport android.graphics.Bitmap;
19dba34ba35cd2042d9a8fecfda56e2abe7a680badJeff Brownimport android.media.session.MediaSession;
20bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErikimport android.os.Bundle;
21bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik
22bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErikimport com.android.onemedia.IPlayerCallback;
23bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErikimport com.android.onemedia.playback.IRequestCallback;
24bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik
25bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErikinterface IPlayerService {
26dba34ba35cd2042d9a8fecfda56e2abe7a680badJeff Brown    MediaSession.Token getSessionToken();
27bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik    void registerCallback(in IPlayerCallback cb);
28bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik    void unregisterCallback(in IPlayerCallback cb);
29bfa153b64b4e8c2faa39a15e87fc9f0300335f20RoboErik    void sendRequest(String action, in Bundle params, in IRequestCallback cb);
3045f7ee8201efbda59b57b1fe637a1b9ffef25bb6Daniel Sandler    void setIcon(in Bitmap icon);
31dba34ba35cd2042d9a8fecfda56e2abe7a680badJeff Brown}
32