Skip to content

Automatic playback of videos is not possible #361

@ferserc1

Description

@ferserc1

Because of paella-core's way of synchronising the different streams, it is necessary to get a response to the canplay event of the videos to complete the loading of the player.

The Safari browser has a rather annoying behaviour that makes it impossible to sync videos: the canplay event is never called, if the video is not explicitly played via the play() function. For this reason, the MP4 video plugin and all its descendants call the video's play() function to trigger this event, so that video synchronisation and player loading can be completed.

The problem is that the default policy of browsers is to prevent video playback with audio, and if the user configures it this way, video playback can also be prevented completely. For this reason, in order for the call to play() not to fail, it must be triggered by a user event, such as click.

All this makes it impossible to call the paella.load() and paella.loadVideo() APIs without a user event.

The problem cannot be solved for now as the video synchronisation system works, but it will be fixed in future versions of paella-core, when the synchronization model is changed.

More information on this issue can be found at the following link:

https://paellaplayer.upv.es/#/doc/about_autoplay.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requestedroadmapA new feature request that is already included in the roadmapwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions