-
Notifications
You must be signed in to change notification settings - Fork 16
Added interactive video embed #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,19 +58,21 @@ | |
| </div> | ||
| </div> | ||
| <div class="intro"> | ||
| <iframe | ||
| class="hidden" | ||
| src="http://player.twitch.tv/?channel={TWITCH_USER_NAME}" | ||
| height="100%" | ||
| width="100%" | ||
| frameborder="0" | ||
| scrolling="no" | ||
| allowfullscreen="true" | ||
| ></iframe> | ||
| <div class="intro-text"> | ||
| <h1>Twitch Stream offline.</h1> | ||
| <p>Stream offline. Come back later and watch me play.</p> | ||
| </div> | ||
| <script src= "http://player.twitch.tv/js/embed/v1.js"></script> | ||
| <div id="{PLAYER_DIV_ID}"></div> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can just be
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And with a |
||
| <script type="text/javascript"> | ||
| var options = { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would move these and the lines following to the |
||
| width: 854, | ||
| height: 480, | ||
| channel: "{nl_kripp}", | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be |
||
| //video: "{VIDEO_ID}" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can remove this |
||
| }; | ||
| var player = new Twitch.Player("{PLAYER_DIV_ID}", options); | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be |
||
| player.setVolume(0.5); | ||
| player.addEventListener(Twitch.Player.PAUSE, () => { console.log('Player is paused!'); }); | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of this Much like how the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay,actually i am new to this can you explain a bit, i am familiar with js but i haven't done any projects like this ...thanks |
||
| </script> | ||
|
|
||
|
|
||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
@@ -142,7 +144,7 @@ <h4>Gameface vs Gamearm</h4> | |
| </div> | ||
| <div class="col-md-4 chat"> | ||
| <h2>Chat</h2> | ||
| <iframe src="https://www.twitch.tv/twitchusername/chat" frameborder="0" scrolling="no" height="500" width="100%"></iframe> | ||
| <iframe src="https://www.twitch.tv/nl_kripp/chat" frameborder="0" scrolling="no" height="500" width="100%"></iframe> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can go back to
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay |
||
| </div> | ||
| </div> | ||
| <div class="row footer"> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be best to have this down at the end of the file with the other JS
<script>tags. Probably before the bootstrap include.Also using
httpswould be awesome.