-
Notifications
You must be signed in to change notification settings - Fork 22
Update static assets URLs #8
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
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 |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ import kotlinx.coroutines.flow.update | |
| import kotlinx.coroutines.launch | ||
|
|
||
| val MEDIA_SOURCE = | ||
| MediaItem.fromUri("https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4") | ||
| MediaItem.fromUri("https://storage.googleapis.com/androiddevelopers/samples_assets/gtv-videos-bucket/sample/BigBuckBunny.mp4") | ||
|
Comment on lines
38
to
+39
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. For better maintainability and to avoid hardcoded values, it's a good practice to extract this URL into a private const val BIG_BUCK_BUNNY_URL = "https://storage.googleapis.com/androiddevelopers/samples_assets/gtv-videos-bucket/sample/BigBuckBunny.mp4"
val MEDIA_SOURCE =
MediaItem.fromUri(BIG_BUCK_BUNNY_URL) |
||
| .buildUpon().setMediaMetadata( | ||
| MediaMetadata.Builder() | ||
| .setTitle("Big Buck Bunny") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ import kotlinx.coroutines.flow.update | |
| import kotlinx.coroutines.launch | ||
|
|
||
| val MEDIA_SOURCE = | ||
| MediaItem.fromUri("https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4") | ||
| MediaItem.fromUri("https://storage.googleapis.com/androiddevelopers/samples_assets/gtv-videos-bucket/sample/BigBuckBunny.mp4") | ||
|
Comment on lines
37
to
+38
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. For better maintainability and to avoid hardcoded values, it's a good practice to extract this URL into a private const val BIG_BUCK_BUNNY_URL = "https://storage.googleapis.com/androiddevelopers/samples_assets/gtv-videos-bucket/sample/BigBuckBunny.mp4"
val MEDIA_SOURCE =
MediaItem.fromUri(BIG_BUCK_BUNNY_URL) |
||
| .buildUpon().setMediaMetadata( | ||
| MediaMetadata.Builder() | ||
| .setTitle("Big Buck Bunny") | ||
|
|
||
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.
For better maintainability and to avoid hardcoded values, it's a good practice to extract this URL into a
const val. This makes it easier to find and update in the future.