nanocosmos Documentation

nanocosmos Documentation

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

›Features

H5Live Player

  • Introduction
  • Getting started
  • Supported Browsers
  • Player Metrics
  • iframe Embeds

Features

  • Autoplay
  • Latency control modes
  • Stream group configuration
  • Secure playback with H5Live
  • Stream switching and ABR
  • Fullscreen API
  • UI and customization
  • Reconnect and Timeouts
  • Media Error Recovery
  • Source defaults
  • Video Access and Processing

Releases

  • Latest
  • History

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 1/24/2023
← iframe EmbedsLatency control modes →
  • 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 © 2023 nanocosmos GmbH - doc version Tue Jan 24 2023 10:52:40 GMT+0000 (Coordinated Universal Time)