ICinemaControl.aidl 1.11 KB
// ICinemaControl.aidl
package com.xgimi.gimicinema;

// Declare any non-default types here with import statements
interface ICinemaControl {
    /**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     */
    void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat,
            double aDouble, String aString);
     //设置当前播放电影总时长.
    void setMovieDuration(long duration);

    // 获取当前播放电影总时长.
    long getMovieDuration();

    //设置当前播放电影进度.
    void setCurrentMoviePosition(long duration);

    //获取当前播放电影进度.
    long getCurrentMoviePosition();

    int getCurrentStatus();

    void setCurrentStatus(int state);

     // 添加新的播放路径到播放列表.
    void addPlayPath(String path);

    //设置当前播放电影.if null 播放器没有播放电影
    void setCurrentPlayPath(String path);

    //获取当前播放路径,可以从中获取电影名
    String getCurrentPath();

    List<String> getPlayList();

    void setPlayList(in List<String> movies);
}