You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/nanoplayer/nanoplayer_embed_detailed.md
+43-17Lines changed: 43 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,32 +3,58 @@ id: nanoplayer_embed_detailed
3
3
title: Embed detailed
4
4
---
5
5
6
-
## Player Embed v1.3.3
6
+
## Player Embed v2.0.0
7
+
8
+
The version of the embed is related to the embed application code, current version is 2.0.0.
9
+
The embed is using the latest player version, you can ready more about the latest version here: [latest 5.x](./nanoplayer_release_latest).
7
10
8
-
The version of the embed is related to the embed application code, current version is 1.3.3.
9
-
The embed is using the latest player version which is always available at this location: [latest 4.x](https://files.nanocosmos.de/index.php/s/4nndC45mcB6oSa6).
10
11
11
12
### Implementation with iFrame
12
13
13
14
#### Template example
14
15
In the following example the `streamname` value has to be replaced:
iFrame src has to direct to the embedded player ( `https://demo.nanocosmos.de/nanoplayer/embed/1.3.3/nanoplayer.html?entry.rtmp.streamname=XXXXX-YYYYY` ). It is necessary to add the query (like `entry.rtmp` with `streamname`, else the embedded player will be set but won't run without the stream)!
23
+
iFrame src has to direct to the embedded player ( `https://demo.nanocosmos.de/nanoplayer/embed/2.0.0/nanoplayer.html?entry.rtmp.streamname=XXXXX-YYYYY` ). It is necessary to add the query (like `entry.rtmp` with `streamname`, else the embedded player will be set but won't run without the stream)!
Using nanoplayer.5.min.js instead of nanoplayer.4.min.js.
36
+
Embed Player 2.0.0 has full support of query params which are compatibile with [nanoStream H5Live Player Version v5](./nanoplayer_v5_migration_guide).
37
+
38
+
#### Query Parameter Type Handling
39
+
40
+
Embed Player 2.0.0 uses **strict type checking** for configuration parameters. This ensures proper behavior and prevents unexpected type conversions.
41
+
42
+
**Boolean Parameters**
43
+
- Only the string values `"true"` and `"false"` will be converted to boolean types
44
+
- Numeric values like `1` or `0` will NOT be converted to booleans
45
+
- Common boolean parameters include:
46
+
-`playback.autoplay=true`
47
+
-`playback.automute=true`
48
+
-`playback.muted=false`
49
+
-`playback.faststart=true`
50
+
-`playback.metadata=true`
51
+
52
+
**Migration from v1.x:**
53
+
If previously numeric values were used for boolean parameters (e.g., `playback.metadata=1`), in the Embed Player 2.0.0. it must be updated to use explicit boolean strings (`playback.metadata=true`).
54
+
55
+
### New in v1.3.4
56
+
57
+
Added support for embed page custom title via query param `title`.
0 commit comments