nanocosmos Documentation

nanocosmos Documentation

  • nanoStream Cloud
  • H5Live Player
  • nanoStream Webcaster
  • nanoStream Apps and SDKs
  • Samples
  • FAQ

›Features

H5Live Player

  • Introduction
  • Getting started
  • Supported Browsers
  • Player Metrics

Features

  • Autoplay
  • Secure playback with H5Live
  • Stream switching and ABR
  • Fullscreen API
  • UI and customization
  • Reconnect and Timeouts

API

  • NanoPlayer
  • NanoPlayer Status & Error Codes

Other

  • FAQ
  • Blog
Edit

Autoplay

nanoPlayer / H5Live Autoplay

Autoplay of videos on web pages is a highly discussed topic. Does it improve or reduce user experience?

Auto-play of video and audio streams is now only supported with muted audio (silent)!

When auto is not muted, the video would just not play.

This is a restriction introduced by all large browser vendors, and it requires fine-tuned configuration for web developers.

From the Google web page:

Chrome's autoplay policies have changed in April 2018 and this is going to affect video playback with sound. Spoiler alert: users are going to love it!

How can you achieve auto-play on web pages with H5Live player?

With autoplay and automute enabled the player will attempt to start the playback unmuted. If this fails due to browser autoplay policy restrictions the playback will be started muted.

Configuring auto mute in nanoStream H5live Player:

    config.playback.autoplay=true;
    config.playback.automute=true;
    config.playback.muted=false;

or

var config = {
    "source": {
        // ...
    },
    "playback": {
        "autoplay": true,
        "automute": true,
        "muted": false
    }
    // ...
};

More information:

Chrome web page Webkit / Safari web page

Last updated on 2/21/2021
← Player MetricsSecure playback with H5Live →
  • How can you achieve auto-play on web pages with H5Live player?
  • More information:
Contact
HomepageContactSupportLegal Terms
Products
Nanostream Cloud with Bintu.LiveH5Live Low Latency HTML5-PlayernanoStream WebcasterNanostream Apps and SDK
More
BlogTwitterFacebookLinkedInGitHubStar
nanocosmos GmbH
Copyright © 2021 nanocosmos GmbH - doc version Sun Feb 21 2021 20:36:34 GMT+0000 (Coordinated Universal Time)