4.9.1 • Published 22 days ago

@applandstream/streaming-view-sdk v4.9.1

Weekly downloads
-
License
ISC
Repository
github
Last release
22 days ago

Streaming View SDK

This contains a set of React components that can be used to interact with a stream of the android emulator from the browser.

Full reference

Usage StreamingView

You can connect to the remote stream as follows:

import { StreamingView } from 'streaming-view-sdk';

class App extends React.Component {
  render() {
    return (
      <StreamingView
        apiEndpoint={'https://exampe.com/api/streaming-service'}
        edgeNodeId={'a8a363c7-7104-4a40-9908-c4122d15f902'}
        enableControl={true}
        enableFullScreen={false}
      >
        <!--
        Here you can place a component or elements that should
        be displayed until the streaming view is ready.
        -->
      </StreamingView>
    );
  }
}

Usage StreamingController

You can shut down an edge node with the StreamingController

import { StreamingController } from 'streaming-view-sdk';

StreamingController({
  apiEndpoint: 'https://exampe.com/api/streaming-service',
  edgeNodeId: 'a8a363c7-7104-4a40-9908-c4122d15f902'
})
  .then((streamingController) => streamingController.terminate())
  .then(console.log)
  .catch(console.error);

Full Reference

Streaming View

A React component that displays and controls a remote stream from the android emulator.

Supported properties

proptypedefaultrequireddescription

| apiEndpoint | String | | :white_check_mark: | API endpoint the component should use to connect to the Streaming Service API. | | edgeNodeId | String | | :white_check_mark: | Edge Node Id received from GET: Create API endpoint, and can't bedynamically changed during runtime. | | enableControl | Boolean | true | :x: | Enable/disable user interactions with the game, can be dynamically changed during runtime. | | enableFullScreen | Boolean | true | :x: | The app will put the stream in full-screen mode after the first user interaction. | | volume | Number | 1.0 | :x: | Volume has the following range: 0.0...1.0. Volume 0.0 means audio is muted, volume 1.0 is maximum volume and 0.5 means 50% of volume. |

Streaming controller

A class that controls the stream

Supported properties

proptypedefaultrequireddescription

| apiEndpoint | String | | :white_check_mark: | API endpoint the component should use to connect to the Streaming Service API. | | edgeNodeId | String | | :white_check_mark: | Edge Node Id received from GET: Create API endpoint, and can't be dynamically changed during runtime. |

Functions

  • terminate() Terminates the instance returns a promise with the result

How Sync protobuf definitions

For the update of protobuf definition, that define the shared API between the web client and the Android Emulator do the following steps:

  1. Download https://dl.google.com/android/repository/emulator-linux-XXXXX.zip
  2. Copy all .proto and .protobuf found in /lib (in the zip file) folder into /protobuf-definition folder in this project.

How to generate proto files

Run shell script:

./build-sdk.sh

Last Commit Id of merged Google repository

d9aa985ab40790050dd8c28ce34d8e05cb386750

4.9.1-rc.3

22 days ago

4.9.1

1 month ago

4.9.1-rc.2

1 month ago

4.9.1-rc.1

1 month ago

4.9.0

2 months ago

4.9.0-rc.1

2 months ago

4.8.0

2 months ago

4.8.0-rc.1

2 months ago

4.7.0

2 months ago

4.7.0-rc.1

2 months ago

4.6.0

3 months ago

4.6.0-rc.4

3 months ago

4.6.0-rc.3

4 months ago

4.6.0-rc.2

4 months ago

4.6.0-rc.1

4 months ago

4.5.0

4 months ago

4.5.0-rc.1

4 months ago

4.4.0

5 months ago

4.4.0-rc.1

5 months ago

4.3.1-rc.1

5 months ago

4.3.0

5 months ago

4.2.0-rc.1

6 months ago

4.2.2-rc.4

6 months ago

4.2.2-rc.1

6 months ago

4.2.2-rc.3

6 months ago

4.1.0-rc.12

6 months ago

4.2.2-rc.2

6 months ago

4.2.5-rc.1

6 months ago

4.2.10

6 months ago

4.2.1-rc.1

6 months ago

4.2.7-rc.1

6 months ago

4.2.1-rc.2

6 months ago

4.2.3

6 months ago

4.2.2

6 months ago

4.2.5

6 months ago

4.2.4

6 months ago

4.2.1

6 months ago

4.2.0

6 months ago

4.2.7

6 months ago

4.2.6

6 months ago

4.2.9

6 months ago

4.2.8

6 months ago

4.1.0-rc.10

7 months ago

4.1.0-rc.11

6 months ago

4.1.0-rc.9

7 months ago

4.0.1

8 months ago

4.0.0

9 months ago

4.0.0-rc.10

10 months ago

4.0.0-rc.16

9 months ago

4.0.0-rc.15

9 months ago

4.0.0-rc.18

9 months ago

4.0.0-rc.17

9 months ago

4.0.0-rc.12

10 months ago

4.0.0-rc.11

10 months ago

4.0.0-rc.14

9 months ago

4.0.0-rc.13

9 months ago

4.0.0-rc.19

8 months ago

4.0.0-rc.9

10 months ago

4.1.0-rc.1

8 months ago

4.1.0-rc.2

8 months ago

4.1.0-rc.3

8 months ago

4.0.0-rc.3

10 months ago

4.1.0-rc.4

8 months ago

4.0.0-rc.2

11 months ago

4.1.0-rc.5

7 months ago

4.0.0-rc.5

10 months ago

4.1.0-rc.6

7 months ago

4.0.0-rc.4

10 months ago

4.1.0-rc.7

7 months ago

4.1.0-rc.8

7 months ago

4.0.0-rc.6

10 months ago

4.0.0-rc.21

8 months ago

4.0.0-rc.20

8 months ago

4.0.0-rc.22

8 months ago

4.1.0

7 months ago

3.5.0-rc.1

11 months ago

3.4.11-rc.1

11 months ago

4.0.0-rc.1

11 months ago

3.5.1-rc.0

11 months ago

3.4.10-rc.1

11 months ago

3.5.1

11 months ago

3.5.0

11 months ago

3.4.10-dev.0

11 months ago

3.4.11-rc.0

12 months ago

3.4.9-rc.0

12 months ago

3.4.8-rc.0

12 months ago

3.4.10-rc.0

12 months ago

3.4.9

12 months ago

3.4.4-rc.0

1 year ago

3.4.1-rc.0

1 year ago

3.4.6-rc.0

1 year ago

3.4.0

1 year ago

3.4.2

1 year ago

3.4.2-rc.0

1 year ago

3.4.3-0

1 year ago

3.4.7

1 year ago

3.4.6

1 year ago

3.4.0-rc.0

1 year ago

3.4.5-rc.0

1 year ago

3.2.1-rc.0

1 year ago

3.3.0-rc.0

1 year ago

3.2.2-rc.0

1 year ago

3.3.1-rc.0

1 year ago

3.3.0

1 year ago

3.0.1-rc.0

1 year ago

2.1.3-rc.0

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.3

1 year ago

3.2.0

1 year ago

3.0.2

1 year ago

3.2.0-rc.0

1 year ago

3.1.0-rc.0

1 year ago

3.0.0-rc.0

1 year ago

4.0.0-rc.0

1 year ago

2.1.4-rc.0

2 years ago

3.0.2-rc.0

1 year ago

2.1.1-rc.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.3.2-rc.3

2 years ago

1.3.2-rc.2

2 years ago

1.3.2-rc.4

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.2-rc.1

2 years ago

1.3.1

2 years ago

1.3.2-rc.0

2 years ago

1.3.4-rc.0

2 years ago

1.3.3-rc.0

2 years ago

1.3.1-rc.3

2 years ago

1.3.1-rc.2

2 years ago

1.3.1-rc.1

2 years ago

1.3.1-rc.0

2 years ago

1.3.0

2 years ago

1.3.0-rc.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-rc.1

2 years ago

2.0.0-rc.0

2 years ago

1.0.0-rc.0

2 years ago

0.0.3-rc.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago