Skip to content
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

Subtitle #39

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
659b4db
asdfas
Jan 23, 2018
c6152a5
hacky implementation of screen share
5harf Jan 23, 2018
029a453
add back video
5harf Jan 23, 2018
57505b3
Update css
benshope Jan 23, 2018
4e2c15c
fix merge
5harf Jan 23, 2018
e3c304a
Make stripes blue
benshope Jan 23, 2018
7cd536d
Tone down dem border radii
benshope Jan 23, 2018
ae6e630
Remove header background when fixed to top
benshope Jan 23, 2018
ab98632
attach video and stream to separate container
5harf Jan 23, 2018
a08fd60
Merge branch 'master' of github.com:pitalooops/video-quickstart-js
5harf Jan 23, 2018
6f5f45b
Update header bar
benshope Jan 24, 2018
b5740d7
add chat files
Jan 24, 2018
482d06e
Merp
benshope Jan 24, 2018
b1dcca4
Working again
benshope Jan 24, 2018
ad2f775
minor
benshope Jan 24, 2018
21e30d8
Moop
benshope Jan 24, 2018
9107a85
Add favicon
benshope Jan 24, 2018
7c7935e
append video tracks
5harf Jan 24, 2018
48667e7
Merge branch 'master' of github.com:pitalooops/video-quickstart-js
5harf Jan 24, 2018
5d1383f
Rename
benshope Jan 24, 2018
29351ac
Merge branch 'master' of github.com:pitalooops/video-quickstart-js
benshope Jan 24, 2018
b674b14
Picture in picture
benshope Jan 24, 2018
aea7ada
Add salesforce lightning and salesforce sans
benshope Jan 24, 2018
3093cd7
chat stuff
Jan 24, 2018
8367a8b
Merge branch 'master' into chat
5harf Jan 24, 2018
f2efe91
change token
5harf Jan 24, 2018
b417ba2
Merp
benshope Jan 24, 2018
233bcf8
Merge branch 'master' of github.com:pitalooops/video-quickstart-js
benshope Jan 24, 2018
7cbedea
unify joining room and chat
5harf Jan 24, 2018
a8099e6
minor
benshope Jan 24, 2018
1e75cd5
Merge branch 'master' of github.com:pitalooops/video-quickstart-js
benshope Jan 24, 2018
bacfb86
Move chat section to correct area
benshope Jan 25, 2018
8461394
update background image
5harf Jan 25, 2018
1db6cd4
Merp
benshope Jan 25, 2018
12c797b
Merge branch 'master' of github.com:pitalooops/video-quickstart-js
benshope Jan 25, 2018
f7aeb77
latest chat window styling
benshope Jan 25, 2018
ed6d43f
generate names and show name
5harf Jan 25, 2018
f9e018a
merp
benshope Jan 25, 2018
822ed30
Merge branch 'master' of github.com:pitalooops/video-quickstart-js
5harf Jan 25, 2018
37125d3
Merge branch 'master' of github.com:pitalooops/video-quickstart-js
5harf Jan 25, 2018
db6c81e
addition of subtitle
Jan 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2,788 changes: 2,788 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
},
"homepage": "https://github.com/twilio/video-quickstart-js#readme",
"dependencies": {
"@salesforce-ux/design-system": "~2.5.0",
"dotenv": "^4.0.0",
"express": "^4.15.2",
"prismjs": "^1.6.0",
Expand Down
52 changes: 52 additions & 0 deletions quickstart/extension/extension.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
chrome.runtime.onMessageExternal.addListener((message, sender, sendResponse) => {
switch (message && message.type) {
// Our web app sent us a "getUserScreen" request.
case 'getUserScreen':
handleGetUserScreenRequest(message.sources, sender.tab, sendResponse);
break;

// Our web app sent us a request we don't recognize.
default:
handleUnrecognizedRequest(sendResponse);
break;
}

return true;
});

/**
* Respond to a "getUserScreen" request.
* @param {Array<DesktopCaptureSourceType>} sources
* @param {Tab} tab
* @param {function} sendResponse
* @returns {void}
*/
function handleGetUserScreenRequest(sources, tab, sendResponse) {
chrome.desktopCapture.chooseDesktopMedia(sources, tab, streamId => {
// The user canceled our request.
if (!streamId) {
sendResponse({
type: 'error',
message: 'Failed to get stream ID'
});
}

// The user accepted our request.
sendResponse({
type: 'success',
streamId: streamId
});
});
}

/**
* Respond to an unrecognized request.
* @param {function} sendResponse
* @returns {void}
*/
function handleUnrecognizedRequest(sendResponse) {
sendResponse({
type: 'error',
message: 'Unrecognized request'
});
}
16 changes: 16 additions & 0 deletions quickstart/extension/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"manifest_version": 2,
"name": "your-plugin-name",
"version": "0.10",
"background": {
"scripts": ["extension.js"]
},
"externally_connectable": {
"matches": ["*://localhost/*", "*://*.example.com/*"]
},
"permissions": [
"desktopCapture",
"tabs"
],
"key": "ckgnaeohbcodmadmmnilmfeidecicpdn"
}
106 changes: 106 additions & 0 deletions quickstart/public/assets/fonts/License-for-font.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
FONT LICENSE AGREEMENT

THIS FONT LICENSE AGREEMENT (“AGREEMENT”) IS A LEGAL AGREEMENT BETWEEN YOU AND
SALESFORCE.COM, INC. (“WE”, “US”, “OUR”, AND “SALESFORCE”) THAT GOVERNS YOUR
ACQUISITION AND USE OF THE SALESFORCE SANS FONT (E.G., TYPEFACE, TYPOGRAPHIC
CHARACTERS, ALPHANUMERICS, SYMBOLS, DESIGNS, AND ORNAMENTS) AND THE RELATED
FONT FILES (E.G., TRUETYPE (TTF), WEB OPEN FONT FORMAT (WOFF,WOFF2), EMBEDDED
OPENTYPE (EOT), AND SCALABLE VECTOR GRAPHICS (SVG) FILES) (COLLECTIVELY, THE
“FONT”). BY DOWNLOADING OR USING THE FONT, YOU AGREE TO THE TERMS OF THIS
AGREEMENT. IF YOU ARE DOWNLOADING OR USING THE FONT ON BEHALF OF A COMPANY OR
OTHER LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE AUTHORITY TO BIND SUCH
ENTITY AND ITS AFFILIATES TO THIS AGREEMENT, IN WHICH CASE THE TERMS “YOU” OR
“YOUR” WILL REFER TO SUCH ENTITY AND ITS AFFILIATES. IF YOU DO NOT HAVE SUCH
AUTHORITY, OR IF YOU DO NOT AGREE WITH THE TERMS OF THIS AGREEMENT, YOU MUST
NOT DOWNLOAD OR USE THE FONT. This Agreement was last updated on August 21,
2015. It is effective between You and Us as of the date You accept this
Agreement by downloading or using the Font.

1. License Grant
Subject to the terms of this Agreement and any other
applicable Salesforce terms, conditions, and acceptable use policies (AUPs),
We hereby grant to You a revocable, non-transferable, non-exclusive, and non-
sublicenseable limited license to, without modification, reproduce and use the
Font solely to create applications with the Salesforce Lightning Design System
that run in Salesforce or on a Salesforce platform (e.g., Lightning, Heroku,
Visualforce) (“Applications”).

2. Restrictions
To the extent your Application contains copyright notices,
together with all other copyright notices included with each Application, You
will include the following copyright notice: “The Salesforce Sans Font is used
under license from salesforce.com, inc. Copyright 2015 Salesforce.com, Inc.”
You may not modify, adapt, translate, reverse engineer, decompile,
disassemble, or create derivative works based on the Font. You must include
the Font in an Application in a manner that does not allow a user to access
the Font outside of the Application. You will not use the Font on a
standalone basis and will only use the Font as part of the Salesforce
Lightning Design System. You must not take any action which will have the
direct or indirect effect of causing the Font to become subject to the terms
of an open source license or any similar terms. You may refer to the Font as
“Salesforce Sans”, but You may not use any other Salesforce trademark in
connection with the Font except as may be expressly agreed to by Salesforce in
writing or as set forth in other applicable Salesforce terms, conditions, and
acceptable use policies (AUPs) and in any event You must comply at all times
with the Salesforce Trademark and Copyright Usage Guidelines located at http:/
/www2.sfdcstatic.com/assets/pdf/misc/salesforce_Trademark_Usage_Guidelines.pdf
and any other supplemental guidelines that may apply to you. You must not
license, sublicense, sell, resell, rent, lease, transfer, assign, distribute,
time share, or otherwise commercially exploit the Font nor make the Font
available to any third party, other than as expressly permitted by this
Agreement. To the extent any Font documentation, style guides, or other
applicable Salesforce terms, conditions, and acceptable use policies (AUPs)
impose guidelines or restrictions for the use of the Font, You will abide by
those guidelines and restrictions.

3. Ownership
Subject to the limited rights expressly granted hereunder, We
reserve all rights, title, and interest in and to the Font, including all
related intellectual property rights. No rights are granted to You hereunder
other than as expressly set forth herein. We shall have a royalty-free,
worldwide, irrevocable, perpetual license to use and incorporate into the Font
any suggestions, enhancement requests, recommendations, or other feedback
provided by You.

4. Term and Termination
This Agreement will take effect when you download or
use the Font and will terminate upon the earlier of: (a) Your failure to
comply with any term of this Agreement or any other applicable Salesforce
terms, conditions, and acceptable use policies (AUPs); (b) return,
destruction, or deletion of all copies of the Font in your possession; or, (c)
60 days after Salesforce provides You with written notice of termination.
Salesforce’s rights and your obligations will survive the termination of this
Agreement. Upon termination of this Agreement by Salesforce, if requested by
Salesforce, you will destroy or delete all copies of the Font in your
possession and cease using the Font in all Applications.

5. No Warranty
THE FONT IS PROVIDED “AS-IS,” EXCLUSIVE OF ANY WARRANTY
WHATSOEVER. WE DISCLAIM ALL IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION
ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
TITLE, AND NON-INFRINGEMENT. The Font may contain bugs or errors. Any use of
the Font is at Your sole risk. You acknowledge that We may discontinue making
the Font available to You at any time in Our sole discretion.

6. No Damages
IN NO EVENT SHALL WE HAVE ANY LIABILITY HEREUNDER TO YOU FOR
ANY DAMAGES WHATSOEVER, INCLUDING BUT NOT LIMITED TO DIRECT, INDIRECT,
SPECIAL, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR DAMAGES BASED ON
LOST PROFITS, DATA OR USE, HOWEVER CAUSED AND, WHETHER IN CONTRACT, TORT OR
UNDER ANY OTHER THEORY OF LIABILITY, WHETHER OR NOT YOU HAVE BEEN ADVISED OF
THE POSSIBILITY OF SUCH DAMAGES.

7. General Provisions
You may not assign any of Your rights or obligations
hereunder, whether by operation of law or otherwise, without Our prior written
consent. This Agreement shall be governed exclusively by the internal laws of
the State of California, without regard to its conflicts of laws rules. Each
party hereby consents to the exclusive jurisdiction of the state and federal
courts located in San Francisco County, California to adjudicate any dispute
arising out of or relating to this Agreement. This Agreement constitutes the
entire agreement between the parties, and supersedes all prior and
contemporaneous agreements, proposals or representations, written or oral,
concerning its subject matter. No modification, amendment, or waiver of any
provision of this Agreement shall be effective unless in writing and either
signed or accepted electronically by the party against whom the modification,
amendment or waiver is to be asserted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading