3.0.1 • Published 8 days ago

evexi v3.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 days ago

Evexi API

Logo

Introduction

The Evexi API is designed for use with background tasks, web items or zip items within the Evexi Player. It is important to note that it is the responsibility of the developer to manage any stored assets. The Evexi API has been tested to support Tizen firmware 2070 and later and we cannot guarantee the API to work reliably on previous firmware versions. The docs & examples directories contain examples of filesystem communication, interactive and more. the player supports multiple platforms, some of which only support ES5 and others early versions of ES6. Therefore, its recommended to compile your application down to ES5. All methods returning a promise are wrapped in a timeout of 5 seconds. If no response is received within this time an error will be thrown within the catch statement.

Tests

Details

API Details

Install

The repo provides a package containing both window.Evexi for content API methods and window.Scan (remote part of interactive content). Included are type definitions, examples and full documentation. The Evexi API is subject to change on a per version basis so ensure to check the app definitions match the player version

To setup:

yarn add evexi

import 'evexi' or import Scan from 'evexi/package/Scan'.

Add definitions only as follows:

{
    "compilerOptions": {
        "types": ["evexi"]
    }
}

NOTE: import @babel/polyfill if you are targeting SSSP2 or SSSP4 platforms.

Packaging

A '.zip' application must not contain hidden files and consist of a flat structure (no nested directories). Zip the package as follows:

zipinfo example for example

Archive:  fs-240.zip
Zip file size: 73108 bytes, number of entries: 2
-rw-r--r--  3.0 unx      346 tx defN 21-Sep-21 09:35 index.html
-rw-r--r--  3.0 unx   317567 tx defN 21-Sep-21 09:35 src.77de5100.js
2 files, 317913 bytes uncompressed, 72780 bytes compressed:  77.1%

You can zip your package like so:

cd $1'-'$PACKAGE_VERSION_ADJUSTED # go into directory
zip -r $1'-'$PACKAGE_VERSION_ADJUSTED.zip . -x '.*' -x '__MACOSX' -x '*.DS_Store' # zip all files at current level

Further examples can be found here.

Lifecycle Events

Lifecycle events are triggered by the player if the functions exist within the inner content. To use this feature create a named function on the window object within the script of the loaded content.

<script type="text/javascript">
    
/**
 * Lifecycle event (This function is triggered by the player to indicate the content is visible on the display.
 * You should use this function to trigger any animations or if your showing a picture in picture feed you
 * should do it here). Any code you put outside this will be ran when the content is loaded and before its displayed.
 * The item is passed in so feel free to check its duration, id or anything else required.
 */
function playing(item: MediaInterfaceLocal) {
    console.log('PLAYING ITEM')
}

/**
 * Lifecycle event (Triggered when the content has stopped showing and before the content is destroyed.
 * You should put any clean up or reset code here.)
 */
function stopping(item: MediaInterfaceLocal) {
    console.log('STOPPING ITEM')
}

</script>
3.0.2-alpha.1

8 days ago

3.0.1

24 days ago

3.0.1-alpha.1

2 months ago

3.0.0

2 months ago

3.0.0-alpha.7

2 months ago

3.0.0-alpha.6

3 months ago

3.0.0-alpha.5

3 months ago

3.0.0-alpha.3

3 months ago

3.0.0-alpha.4

3 months ago

3.0.0-alpha.2

4 months ago

3.0.0-alpha.1

4 months ago

2.9.2-alpha.1

5 months ago

2.9.2

5 months ago

2.9.1-alpha.2

10 months ago

2.9.1-alpha.1

10 months ago

2.9.1

10 months ago

2.9.0

1 year ago

2.9.0-alpha.1

1 year ago

2.9.0-alpha.4

1 year ago

2.9.0-alpha.5

1 year ago

2.9.0-alpha.2

1 year ago

2.9.0-alpha.3

1 year ago

2.7.0-alpha.8

2 years ago

2.7.0-alpha.3

2 years ago

2.7.0-alpha.2

2 years ago

2.7.0-alpha.1

2 years ago

2.7.0-alpha.7

2 years ago

2.7.0-alpha.6

2 years ago

2.7.0-alpha.5

2 years ago

2.7.0-alpha.4

2 years ago

2.7.0

2 years ago

2.6.1

2 years ago

2.6.0

2 years ago

2.6.0-alpha.7

2 years ago

2.6.2

2 years ago

2.6.0-alpha.8

2 years ago

2.6.0-alpha.9

2 years ago

2.6.0-alpha.10

2 years ago

2.6.0-alpha.3

2 years ago

2.6.0-alpha.4

2 years ago

2.6.0-alpha.5

2 years ago

2.6.0-alpha.6

2 years ago

2.6.0-alpha.0

2 years ago

2.6.0-alpha.1

2 years ago

2.6.0-alpha.2

2 years ago

2.5.0

2 years ago

2.4.5

2 years ago

2.4.3

3 years ago

2.4.2

3 years ago

2.4.4

2 years ago

2.4.1

3 years ago

1.0.0

3 years ago

2.4.0

3 years ago

2.4.0-Alpha.1

3 years ago

2.4.0-Alpha.0

3 years ago