Since there is no ticket for the events, the plugin for MS doesn't need any snippet for the initialization. It will directly use the plain source list of the player.
The basic usage is illustrated above. The hive plugin is called while the player is being initialized, and currently supports three types of distributions (techs):
We currently have four different plugin packages with the following tech order combinations:
The hiveTechOrder option defines the order in which the above techs within a particular plugin package should be attempted.
Other combination packages can be built on demand depending on the player support.
As seen above, Hive initialization starts with a "ticket" that must be resolved into a real manifest to be played in the player. In general, there are two types of errors that can occur when using Hive, and both should be handled explicitly:
When Hive cannot resolve the ticket, it is impossible for the plugin to know what the supporting, real manifest is backing the ticket. This may occur if, for example:
hiveTechOrder
and the viewer's
machine's capabilities, eg. a value of ['HiveJava']
on a machine that does
not have the Java Agent installed and is using a non-WebRTC capable browser.All Hive plugins expose the ability to catch Hive initialization errors: see the usage example above for more information. In this scenario, it is up to the partner platform to continue with player initialization by either (a) explicitly loading the CDN manifest directly, or (b) retrying Hive with a (possibly new) ticket.
After Hive successfully resolves the ticket, loading the real manifest into the player will begin playback using the initialized Hive technology. At this point, any number of scenarios may occur:
All Hive plugins will stop telemetry and "clean up" on a playback error. This means in order to "restart" Hive telemetries, the initialization flow MUST begin from the beginning -- resolving the ticket and loading the manifest into the player.
To improve user experience, these playback errors SHOULD be handled with a re-trial mechanism. The details are implementation-specific and highly dependent on failover / backup stream capabilities on the platform. A common failover mechanism is to alternate loading the Hive ticket and the supporting CDN manifest in a round-robin manner. If the platform supports backup streams (with Hive tickets), these streams can be added to the round-robin mix as well.
When the CDN requires the use of specific URL parameters or request headers to access private content, Hive has to be initialized with additional information about the used authentication mechanism in order to cache the values and provide optimal distribution with WebRTC.
The plugin option HiveJS.requestCache.queryParams
should be used to inform the name of the query string parameters required by the CDN.
The plugin option HiveJS.requestCache.headers
should be used to inform the name of the headers required by the CDN.
Allows partner-provided configuration for determining video context from regular expressions. If present, the regular expression will be used against the player's manifest URL to determine which streaming protocol to utilize.
Callback function for receiving client statistics.
This function was created in order to make the above MainStatusCode enum constant
Generated using TypeDoc
A ticket (
string
) or a JWTJWTAuthToken
.