Introduction
H200 STB can run multiple player instance to play 4 different video stream at most.
This document contain 3parts, Part 1 is going to describe how to play multiple source on H200 STB with Multi-decode support using the sample html page, Part 2 is going to describe the API that used in the html page, Part 3 are some limitation on using the instance.
Requirements
APP: 25.3.2310.1 or later release.
ini option
webapp.homepage
Please set the webapp.homepage to your html page address, for example:
webapp.homepage="http://192.168.1.2/multiple_player_sample.html"
Sample page: Please download from "https://aminocom.zendesk.com/hc/article_attachments/17922463472665"
Part1
There are 20 test cases in the sample page, which require different video source that your H200 STB can reach.
To use the sample page for multiple player, please replace the below constant address to your test stream in the sample page:
"videoDemoAspectRatio" is for Player Resize test cases
"videoWithNormalVolumn" and "videoWithLoundVolumn" is for Muting test cases
"videoWithTexttrack1" and "videoWithTexttrack2" is for subtitle/CC test cases
"videoNormal1" , "videoNormal2" , "videoNormal3" and "videoNormal4" are for Position test cases
After setting the video source for the test cases and uploaded your sample page, reboot your H200 STB for it to download.
The test cases in the sample page will run automatically with Right key to go to next case, starting from case 0, release all player.
case 1: Player is under webview Layer
case 2: Player is over the webview Layer (after 5 seconds)
case 3: Player is in RESIZE_MODE_FILL
case 4: Player is in RESIZE_MODE_ZOOM
case 5: Player is in RESIZE_MODE_FIT
case 6: Player on the left Muted, on the right Unmuted
case 7: Player on the left Unmuted, on the right Muted
case 8: Two Players are Muted
case 9: Two players with text tracks
case 10: Full screen video with Small screen video on TOP-RIGHT
case 11: Full screen video with Small screen video on TOP-LEFT
case 12: Full screen video with Small screen video on BOTTOM-LEFT
case 13: Full screen video with Small screen video on BOTTOM-RIGHT
case 14: Full screen video with Small screen video on TOP-RIGHT
case 15: Two videos swapped their position
case 16: Two videos on screen
case 17: Three videos on screen
case 18: Four videos on screen
case 19: Three players overlapped
case 20: Reorder the Z order
Part 2
These are the major API that used in the sample page
new ENABLE.player()
At most 4 player instance could be called (without release the player with .release).
ENABLE.player.getInstance(playerId)
Get the existing player instance, create a new player instance if the player is not existing
setVideoRect()
Should see other players if the size of player is not in full size
setVideoRotation()
Will fail (other players may rotate together without correct aspect ratio, requires reboot and re-install of the apk to fix it) if more than 2 player instances are created
Part 3
There are some limitation on using multiple player instance on H200 STB.
1. It support up to 4 player at most for normal play.
2. Teletext control only response to the newest player which called (.setTextTrack(0))
3. Independent Audio for each player which requires closing the surrounding sounds
Conclusion
H200 STB can run multiple player instance using EnableJS. You can use the JS API to write your own page to launch multiple player on H200 STB.