@ccos/ccsdk-lite 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # ccsdk-lite
2
+
3
+ 浏览器 CCSDK LiteApi 版
4
+
5
+ ## Getting started
6
+
7
+ To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
+
9
+ Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
+
11
+ ## Add your files
12
+
13
+ - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
+ - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
+
16
+ ```
17
+ cd existing_repo
18
+ git remote add origin http://gitlab.skysri.com/systemWebpage/ccsdk-lite.git
19
+ git branch -M main
20
+ git push -uf origin main
21
+ ```
22
+
23
+ ## Integrate with your tools
24
+
25
+ - [ ] [Set up project integrations](http://gitlab.skysri.com/systemWebpage/ccsdk-lite/-/settings/integrations)
26
+
27
+ ## Collaborate with your team
28
+
29
+ - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
+ - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
+ - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
+ - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
+ - [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
+
35
+ ## Test and Deploy
36
+
37
+ Use the built-in continuous integration in GitLab.
38
+
39
+ - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
+ - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
+ - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
+ - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
+ - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
+
45
+ ***
46
+
47
+ # Editing this README
48
+
49
+ When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
+
51
+ ## Suggestions for a good README
52
+ Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
53
+
54
+ ## Name
55
+ Choose a self-explaining name for your project.
56
+
57
+ ## Description
58
+ Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
59
+
60
+ ## Badges
61
+ On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
62
+
63
+ ## Visuals
64
+ Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
65
+
66
+ ## Installation
67
+ Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
68
+
69
+ ## Usage
70
+ Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
71
+
72
+ ## Support
73
+ Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
74
+
75
+ ## Roadmap
76
+ If you have ideas for releases in the future, it is a good idea to list them in the README.
77
+
78
+ ## Contributing
79
+ State if you are open to contributions and what your requirements are for accepting them.
80
+
81
+ For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
82
+
83
+ You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
84
+
85
+ ## Authors and acknowledgment
86
+ Show your appreciation to those who have contributed to the project.
87
+
88
+ ## License
89
+ For open source projects, say how it is licensed.
90
+
91
+ ## Project status
92
+ If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
@@ -0,0 +1,71 @@
1
+ export interface StartPAGParam {
2
+ path: string;
3
+ repeat: number;
4
+ x: number;
5
+ y: number;
6
+ width: number;
7
+ height: number;
8
+ }
9
+ export declare function startPagAni(params: StartPAGParam): Promise<any>;
10
+ export declare function stopPagAni(): Promise<any>;
11
+ export declare function sendTts(text: string, ttsId: string): Promise<any>;
12
+ export declare function stopTts(): Promise<any>;
13
+ export declare function sendStreamTts(text: string, ttsId: string, isFirst: boolean, isEnd: boolean): Promise<any>;
14
+ export declare function playerPlayNewUrl(url: string): Promise<any>;
15
+ export declare function playerStop(): Promise<any>;
16
+ export declare function playerPause(): Promise<any>;
17
+ export declare function playerStart(): Promise<any>;
18
+ export declare function playerSeekTo(position: number): Promise<any>;
19
+ export declare function playerHasPrepared(): Promise<any>;
20
+ export declare function playerIsPlaying(): Promise<any>;
21
+ export declare function playerGetDuration(): Promise<any>;
22
+ export declare function playerGetCurrentPosition(): Promise<any>;
23
+ export declare function playerGetPlayerState(): Promise<any>;
24
+ export declare function playerPlayNewFile(path: string): Promise<any>;
25
+ export declare function playerSetLooping(isLooping: boolean, silentLoop?: boolean): Promise<any>;
26
+ export declare function playerSetAutoWakeLock(autoWakeLock: boolean): Promise<any>;
27
+ export declare function playerRePlay(): Promise<any>;
28
+ export declare function playerSetPlayWhenReady(playWhenReady?: boolean): Promise<any>;
29
+ export declare function playerGetPlayerCore(): Promise<any>;
30
+ export declare function playerGetRealPlayerCore(): Promise<any>;
31
+ export declare function playerSetListener(callback: Function): Promise<any>;
32
+ export declare function playerDeleteListener(): Promise<any>;
33
+ export declare function setVideoLayout(width: number, height: number, x: number, y: number): Promise<any>;
34
+ export declare function setVideoVisible(show: boolean): Promise<any>;
35
+ export declare function setBackground(needUpdateColor: boolean, color: number, needUpdateImage: boolean, imageUrl: string): Promise<any>;
36
+ export declare function clearBackground(): Promise<any>;
37
+ export declare function showVoiceTipsBar(tips?: string): Promise<any>;
38
+ export declare function hideVoiceTipsBar(): Promise<any>;
39
+ declare const _default: {
40
+ startPagAni: typeof startPagAni;
41
+ stopPagAni: typeof stopPagAni;
42
+ sendTts: typeof sendTts;
43
+ stopTts: typeof stopTts;
44
+ sendStreamTts: typeof sendStreamTts;
45
+ playerPlayNewUrl: typeof playerPlayNewUrl;
46
+ playerStop: typeof playerStop;
47
+ playerPause: typeof playerPause;
48
+ playerStart: typeof playerStart;
49
+ playerSeekTo: typeof playerSeekTo;
50
+ playerHasPrepared: typeof playerHasPrepared;
51
+ playerIsPlaying: typeof playerIsPlaying;
52
+ playerGetDuration: typeof playerGetDuration;
53
+ playerGetCurrentPosition: typeof playerGetCurrentPosition;
54
+ playerGetPlayerState: typeof playerGetPlayerState;
55
+ playerPlayNewFile: typeof playerPlayNewFile;
56
+ playerSetLooping: typeof playerSetLooping;
57
+ playerSetAutoWakeLock: typeof playerSetAutoWakeLock;
58
+ playerRePlay: typeof playerRePlay;
59
+ playerSetPlayWhenReady: typeof playerSetPlayWhenReady;
60
+ playerGetPlayerCore: typeof playerGetPlayerCore;
61
+ playerGetRealPlayerCore: typeof playerGetRealPlayerCore;
62
+ playerSetListener: typeof playerSetListener;
63
+ playerDeleteListener: typeof playerDeleteListener;
64
+ setVideoLayout: typeof setVideoLayout;
65
+ setVideoVisible: typeof setVideoVisible;
66
+ setBackground: typeof setBackground;
67
+ clearBackground: typeof clearBackground;
68
+ showVoiceTipsBar: typeof showVoiceTipsBar;
69
+ hideVoiceTipsBar: typeof hideVoiceTipsBar;
70
+ };
71
+ export default _default;
@@ -0,0 +1,50 @@
1
+ export interface IntentParam {
2
+ action?: string;
3
+ package?: string;
4
+ class?: string;
5
+ uri?: string;
6
+ extras?: any;
7
+ }
8
+ export interface GetAppInfoParam {
9
+ package: string;
10
+ needIcon?: boolean;
11
+ }
12
+ export declare function startActivity(params: IntentParam): Promise<any>;
13
+ export declare function startService(params: IntentParam): Promise<any>;
14
+ export declare function sendBroadcast(params: IntentParam): Promise<any>;
15
+ export declare function sendLocalBroadcast(params: IntentParam): Promise<any>;
16
+ export declare function startBackEndAction(action: object): Promise<any>;
17
+ export declare function exitPage(): void;
18
+ export declare function moveTaskToBack(): Promise<any>;
19
+ export declare function getUserInfo(): Promise<any>;
20
+ export declare function setUserLogout(): Promise<any>;
21
+ export declare function getAppList(): Promise<any>;
22
+ export declare function getAppInfo(params: GetAppInfoParam): Promise<any>;
23
+ export declare function addLocalBroadcastHook(action: string, callback: Function): Promise<any>;
24
+ export declare function deleteLocalBroadcastHook(action: string): Promise<any>;
25
+ export declare function addBroadcastHook(action: string, callback: Function): Promise<any>;
26
+ export declare function deleteBroadcastHook(action: string): Promise<any>;
27
+ export declare function playAudio(source: string, loop?: boolean, fromAssets?: boolean): Promise<any>;
28
+ export declare function stopAudio(): Promise<any>;
29
+ export declare function appPrivateMethod(method: string, params: any): Promise<any>;
30
+ declare const _default: {
31
+ startActivity: typeof startActivity;
32
+ startService: typeof startService;
33
+ sendBroadcast: typeof sendBroadcast;
34
+ sendLocalBroadcast: typeof sendLocalBroadcast;
35
+ startBackEndAction: typeof startBackEndAction;
36
+ exitPage: typeof exitPage;
37
+ moveTaskToBack: typeof moveTaskToBack;
38
+ getUserInfo: typeof getUserInfo;
39
+ setUserLogout: typeof setUserLogout;
40
+ getAppList: typeof getAppList;
41
+ getAppInfo: typeof getAppInfo;
42
+ addLocalBroadcastHook: typeof addLocalBroadcastHook;
43
+ deleteLocalBroadcastHook: typeof deleteLocalBroadcastHook;
44
+ addBroadcastHook: typeof addBroadcastHook;
45
+ deleteBroadcastHook: typeof deleteBroadcastHook;
46
+ playAudio: typeof playAudio;
47
+ stopAudio: typeof stopAudio;
48
+ appPrivateMethod: typeof appPrivateMethod;
49
+ };
50
+ export default _default;
@@ -0,0 +1,33 @@
1
+ export declare function playNew(path: string): Promise<any>;
2
+ export declare function stop(): Promise<any>;
3
+ export declare function isPlaying(): Promise<any>;
4
+ export declare function hasPrepared(): Promise<any>;
5
+ export declare function getDuration(): Promise<any>;
6
+ export declare function getCurrentPosition(): Promise<any>;
7
+ export declare function getPlayerState(): Promise<any>;
8
+ export declare function pause(): Promise<any>;
9
+ export declare function start(): Promise<any>;
10
+ export declare function rePlay(): Promise<any>;
11
+ export declare function seekTo(position: number): Promise<any>;
12
+ export declare function setLooping(isLooping: boolean, silentLoop?: boolean): Promise<any>;
13
+ export declare function setVolume(volume: number): Promise<any>;
14
+ export declare function setListener(callback: Function): Promise<any>;
15
+ export declare function deleteListener(): Promise<any>;
16
+ declare const _default: {
17
+ playNew: typeof playNew;
18
+ stop: typeof stop;
19
+ isPlaying: typeof isPlaying;
20
+ hasPrepared: typeof hasPrepared;
21
+ getDuration: typeof getDuration;
22
+ getCurrentPosition: typeof getCurrentPosition;
23
+ getPlayerState: typeof getPlayerState;
24
+ pause: typeof pause;
25
+ start: typeof start;
26
+ rePlay: typeof rePlay;
27
+ seekTo: typeof seekTo;
28
+ setLooping: typeof setLooping;
29
+ setVolume: typeof setVolume;
30
+ setListener: typeof setListener;
31
+ deleteListener: typeof deleteListener;
32
+ };
33
+ export default _default;