mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 18:45:03 +08:00
45 lines
1.3 KiB
HTML
45 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<title>Coral – Embed Stream</title>
|
||
<meta charset="utf-8" />
|
||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||
<meta name="viewport" content="width=device-width" />
|
||
<style>
|
||
body {
|
||
margin: 0;
|
||
padding: 0 20px 50px 20px;
|
||
}
|
||
</style>
|
||
</head>
|
||
|
||
<body>
|
||
<p style="text-align: center">
|
||
<a href="/admin">Admin</a> | <a href="/story.html">Story</a> |
|
||
<a href="/storyButton.html">Story With Button</a> |
|
||
<a href="/storyAMP.html"> AMP</a>
|
||
</p>
|
||
<h1 style="text-align: center">Coral – Embed Stream</h1>
|
||
<div id="coralStreamEmbed" style="max-width: 640px; margin: 0 auto"></div>
|
||
<script>
|
||
const CoralStreamEmbed = Coral.createStreamEmbed({
|
||
id: "coralStreamEmbed",
|
||
/**
|
||
*
|
||
* You can listen to events using the example below.
|
||
* The argument passed is the event emitter from
|
||
* https://github.com/asyncly/EventEmitter2
|
||
*
|
||
* events: function(events) {
|
||
* events.onAny(function(eventName, data) {
|
||
* console.log(eventName, data);
|
||
* });
|
||
* },
|
||
*/
|
||
});
|
||
window.CoralStreamEmbed = CoralStreamEmbed;
|
||
CoralStreamEmbed.render();
|
||
</script>
|
||
</body>
|
||
</html>
|