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
  • Fast playback start
  • 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 Error Codes & Handling

Other

  • FAQ
  • Blog
Edit

Autoplay

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

Autoplay and audio configuration

Autoplay of video and audio streams is now only supported with muted audio (silent)!

When audio 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 autoplay 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 regarding autoplay:

Chrome web page Webkit / Safari web page

Autoplay and iOS low power mode

Due to iOS security policies implemented by Apple themselves, in low power mode, it is required to have a user interaction to start the playback. This behavior is expected even if muted - there are no exceptions in low power mode. As the playback is denied without the user gesture, the 1005 error is thrown (Playback must be initialized by user gesture). It is recommended not to attempt a recovery for 1005 error but to find a workaround, i.e ask the user to "tap to play" instead.

Last updated on 9/11/2023
← iframe EmbedsFast playback start →
  • Autoplay and audio configuration
    • How can you achieve autoplay on web pages with H5Live player?
    • More information regarding autoplay:
  • Autoplay and iOS low power mode
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 Mon Sep 11 2023 09:43:20 GMT+0000 (Coordinated Universal Time)