-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Always use https:// #1390
Always use https:// #1390
Conversation
docs/tutorials/basic-usage.md
Outdated
@@ -23,16 +23,16 @@ Basic usage of Shaka Player is very easy: | |||
<body> | |||
<video id="video" | |||
width="640" | |||
poster="//shaka-player-demo.appspot.com/assets/poster.jpg" | |||
controls autoplay></video> | |||
poster="/assets/poster.jpg" |
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.
The original version was correct. assets/poster.jpg is a dynamic script hosted on appspot and does not live in the sources. This change will cause the poster not to show in a local copy. Please revert.
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.
You're right. I'll revert.
</body> | ||
</html> | ||
``` | ||
|
||
```js | ||
// myapp.js | ||
|
||
var manifestUri = '//storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd'; | ||
var manifestUri = 'https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd'; |
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.
Can you explain why we shouldn't use // ? It's not very helpful to make arbitrary changes like this without at least explaining them in the commit message.
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.
See https://www.paulirish.com/2010/the-protocol-relative-url/ and https://google.github.io/styleguide/htmlcssguide.html#Protocol. You can also have a look at b/31773284 and b/73454807
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.
Thanks! Can you please update the other instances of protocol-relative URIs as well? There are many, many of these in the code.
docs/tutorials/basic-usage.md
Outdated
poster="//shaka-player-demo.appspot.com/assets/poster.jpg" | ||
controls autoplay></video> | ||
poster="/assets/poster.jpg" | ||
controls autoplay playsinline></video> |
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.
A link to playsinline docs in the commit message would be helpful. You mention that it's required for iOS, which we do not currently support. If there are other reasons for this, we need context.
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.
Since iOS is not supported yet*, I'll revert for now.
</body> | ||
</html> | ||
``` | ||
|
||
```js | ||
// myapp.js | ||
|
||
var manifestUri = '//storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd'; | ||
var manifestUri = 'https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd'; |
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.
Thanks! Can you please update the other instances of protocol-relative URIs as well? There are many, many of these in the code.
@joeyparrish Here it is: |
Thank you, but I meant in the entire project, not just the docs. Don't worry, though, I'll take care of it. |
This CL simply makes sure we don't use//
and also adds playsinline which is almost always mandatory in iOS worldThis CL simply makes sure we don't use protocol relative URLs.
Source: See https://www.paulirish.com/2010/the-protocol-relative-url/ and https://google.github.io/styleguide/htmlcssguide.html#Protocol.