@eyevinn/web-player 0.8.4 → 0.8.5

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 CHANGED
@@ -20,8 +20,44 @@ player.load("<src-here>").then(() => {
20
20
  });
21
21
  ```
22
22
 
23
+ ### API
24
+
25
+ ```javascript
26
+ class webplayer {
27
+ constructor(wrapper: HTMLElement, opts?: {
28
+ castAppId?: string;
29
+ disablePlayerSizeLevelCap?: boolean; // When disabled do not cap bandwidth based on player size
30
+ iceServers?: RTCIceServer[]; // Override default list of ICE servers (for WebRTC based streaming)
31
+ enableCloudflareWhepBeta?: boolean;
32
+ });
33
+
34
+ async load(src: string, autoplay?: boolean = false): Promise<void>;
35
+ async play(): Promise<boolean>;
36
+ pause();
37
+ stop();
38
+ mute();
39
+ unmute();
40
+ reset();
41
+
42
+ seekTo(position: number, change: number, percentage:number );
43
+ seekToLive();
44
+ setAudioTrack(id: string);
45
+ setTextTrack(id: string);
46
+ setVolume(change: number, percentage: number);
47
+ getVolume(): number;
48
+ getVideoLevels(): IVideoLevel[];
49
+
50
+ isPlaying: boolean; // read-only
51
+ isMuted: boolean; // read-only
52
+ isLive: boolean; // read-only
53
+ currentTime: number; // read-only
54
+ currentLevel: number;
55
+ }
56
+
57
+ ```
58
+
23
59
  ### CDN
24
- Download the latest release of this package [from jsdelivr](https://registry.npmjs.org/@eyevinn/web-player/-/web-player-0.4.0.tgz) and include the javascript & css files in your HTML.
60
+ Download the latest release of this package [from jsdelivr](https://registry.npmjs.org/@eyevinn/web-player/-/web-player-<version>.tgz) and include the javascript & css files in your HTML.
25
61
 
26
62
  The snippet below shows an example on how to implement the player
27
63
  ```html
@@ -70,6 +106,16 @@ See the License for the specific language governing permissions and
70
106
  limitations under the License.
71
107
  ```
72
108
 
109
+ # Support
110
+
111
+ Join our [community on Slack](http://slack.streamingtech.se) where you can post any questions regarding any of our open source projects. Eyevinn's consulting business can also offer you:
112
+
113
+ - Further development of this component
114
+ - Customization and integration of this component into your platform
115
+ - Support and maintenance agreement
116
+
117
+ Contact [sales@eyevinn.se](mailto:sales@eyevinn.se) if you are interested.
118
+
73
119
  ## About Eyevinn Technology
74
120
 
75
121
  Eyevinn Technology is an independent consultant firm specialized in video and streaming. Independent in a way that we are not commercially tied to any platform or technology vendor.