Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
disable native controls for Facebook Instant Articles
Browse files Browse the repository at this point in the history
  • Loading branch information
norlin committed Jan 29, 2018
1 parent fd1e4bf commit 068a37e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hola_player.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ Player.prototype.init_element = function(element){
if (!element.id)
element.id = util.unique_id('hola_player');
element.setAttribute('playsinline', '');
// disable forced native controls in Facebook Instant Articles
element.setAttribute('data-fb-disable-controls', '');
element.hola_player = this;
return element;
};
Expand Down

0 comments on commit 068a37e

Please sign in to comment.