We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9124878 commit ceb45a6Copy full SHA for ceb45a6
1 file changed
src/stream.js
@@ -66,3 +66,11 @@ module.exports = (trackPath, secretToken) => {
66
return playerApi(player);
67
});
68
};
69
+
70
+/**
71
+ * Call this from a user interaction, before creating a player, to ensure that playback
72
+ * can start even if `play()` is not from a user interaction.
73
+ */
74
+module.exports.activateAudioElement = () => {
75
+ SCAudio.activateAudioElement();
76
+};
0 commit comments