Skip to content

Commit 26b99d3

Browse files
authored
Merge pull request #217 from android/yrezgui/static-assets
Update static assets URLs
2 parents a2c9020 + ff31e29 commit 26b99d3

14 files changed

Lines changed: 451 additions & 451 deletions

File tree

JetStreamCompose/jetstream/src/main/assets/movies.json

Lines changed: 52 additions & 52 deletions
Large diffs are not rendered by default.

Leanback/app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
<string name="search_results">Search results for \'%1$s\'</string>
3838
<string name="no_search_results">No search results found for \'%1$s\'</string>
39-
<string name="catalog_url">https://storage.googleapis.com/android-tv/android_tv_videos_new.json</string>
39+
<string name="catalog_url">https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/android_tv_videos_new.json</string>
4040

4141
<!-- Error messages -->
4242

Leanback/app/src/test/java/com/example/android/tvleanback/VideoDbUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void getVideosFromLocalJson() throws JSONException {
102102

103103
@Test
104104
public void getVideosFromServer() throws IOException, JSONException {
105-
String serverUrl = "https://storage.googleapis.com/android-tv/android_tv_videos_new.json";
105+
String serverUrl = "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/android_tv_videos_new.json";
106106
VideoDbBuilder videoDbBuilder = new VideoDbBuilder();
107107
List<ContentValues> contentValuesList = videoDbBuilder.fetch(serverUrl);
108108
Assert.assertTrue(contentValuesList.size() > 0);

LeanbackShowcase/app/src/main/java/androidx/leanback/leanbackshowcase/app/media/VideoConsumptionExampleFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
public class VideoConsumptionExampleFragment extends VideoFragment {
3030

31-
private static final String URL = "https://storage.googleapis.com/android-tv/Sample videos/"
31+
private static final String URL = "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample videos/"
3232
+ "April Fool's 2013/Explore Treasure Mode with Google Maps.mp4";
3333
public static final String TAG = "VideoConsumption";
3434
private VideoMediaPlayerGlue<MediaPlayerAdapter> mMediaPlayerGlue;

LeanbackShowcase/app/src/main/java/androidx/leanback/leanbackshowcase/app/media/VideoConsumptionExampleWithExoPlayerFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
public class VideoConsumptionExampleWithExoPlayerFragment extends VideoFragment {
2929

30-
private static final String URL = "https://storage.googleapis.com/android-tv/Sample videos/"
30+
private static final String URL = "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample videos/"
3131
+ "April Fool's 2013/Explore Treasure Mode with Google Maps.mp4";
3232
public static final String TAG = "VideoConsumptionWithExoPlayer";
3333
private VideoMediaPlayerGlue<ExoPlayerAdapter> mMediaPlayerGlue;

LeanbackShowcase/app/src/main/java/androidx/leanback/leanbackshowcase/app/room/db/repo/VideosRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private void createAndPopulateDatabase() {
166166
// insert contents into database
167167
try {
168168
String url =
169-
"https://storage.googleapis.com/android-tv/";
169+
"https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/";
170170
initializeDb(mDb, url);
171171
} catch (IOException e) {
172172
e.printStackTrace();
@@ -270,7 +270,7 @@ private static void postProcessing(VideosWithGoogleTag.VideosGroupByCategory vid
270270
each.setVideoUrl(each.getVideoUrls().get(0));
271271
each.setRented(false);
272272
each.setStatus("");
273-
each.setTrailerVideoUrl("https://storage.googleapis.com/android-tv/Sample%20videos/Google%2B/Google%2B_%20Say%20more%20with%20Hangouts.mp4");
273+
each.setTrailerVideoUrl("https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Google%2B/Google%2B_%20Say%20more%20with%20Hangouts.mp4");
274274
}
275275
}
276276
}

LeanbackShowcase/app/src/main/res/raw/detail_example.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"text": "It was nine o’clock one sunny California morning, and Geoffrey Strong stood under the live-oak trees in Las Flores Cañon, with a pot of black paint in one hand and a huge brush in the other. He could have handled these implements to better purpose and with better grace had not his arms been firmly held by three laughing girls, who pulled not wisely, but too well. He was further incommoded by the presence of a small urchin who lay on the dusty ground beneath his feet, fastening an upward clutch on the legs of his trousers.\n\nThere were three large canvas tents directly in front of them, yet no one of these seemed to be the object of dissension, but rather a redwood board, some three feet in length, which was nailed on a tree near by. twitch of her cousin’s sleeve.",
66
"localImageResource": "movie_poster_01",
77
"price": "$9.99",
8-
"trailerUrl": "https://storage.googleapis.com/android-tv/Sample videos/Google+/Google+_ Sharing but like real life.mp4",
9-
"videoUrl": "https://storage.googleapis.com/android-tv/Sample videos/April Fool's 2013/Explore Treasure Mode with Google Maps.mp4",
8+
"trailerUrl": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample videos/Google+/Google+_ Sharing but like real life.mp4",
9+
"videoUrl": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample videos/April Fool's 2013/Explore Treasure Mode with Google Maps.mp4",
1010
"characters": [
1111
{
1212
"type": "CHARACTER",

LeanbackShowcase/app/src/main/res/raw/live_movie_debug.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@
33
"category": "Google+",
44
"videos": [{
55
"description": "Jon introduces Instant Upload with a few thoughts on how we remember the things that matter. Check out some ways we've been rethinking real-life sharing for the web at plus.google.com",
6-
"sources": ["https://storage.googleapis.com/android-tv/Sample%20videos/Google%2B/Google%2B_%20Instant%20Upload.mp4"],
7-
"card": "https://storage.googleapis.com/android-tv/Sample%20videos/Google%2B/Google%2B_%20Instant%20Upload/card.jpg",
8-
"background": "https://storage.googleapis.com/android-tv/Sample%20videos/Google%2B/Google%2B_%20Instant%20Upload/bg.jpg",
6+
"sources": ["https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Google%2B/Google%2B_%20Instant%20Upload.mp4"],
7+
"card": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Google%2B/Google%2B_%20Instant%20Upload/card.jpg",
8+
"background": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Google%2B/Google%2B_%20Instant%20Upload/bg.jpg",
99
"title": "Instant Upload",
1010
"studio": "Google+"
1111
}, {
1212
"description": "With Google+ Instant Upload, every picture you take on your phone is instantly backed up to a private Google+ album. It's a simple way to make sure you never lose another memory.",
13-
"sources": ["https://storage.googleapis.com/android-tv/Sample%20videos/Google%2B/Google%2B_%20New%20Dad.mp4"],
14-
"card": "https://storage.googleapis.com/android-tv/Sample%20videos/Google%2B/Google%2B_%20New%20Dad/card.jpg",
15-
"background": "https://storage.googleapis.com/android-tv/Sample%20videos/Google%2B/Google%2B_%20New%20Dad/bg.jpg",
13+
"sources": ["https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Google%2B/Google%2B_%20New%20Dad.mp4"],
14+
"card": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Google%2B/Google%2B_%20New%20Dad/card.jpg",
15+
"background": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Google%2B/Google%2B_%20New%20Dad/bg.jpg",
1616
"title": "New Dad",
1717
"studio": "Google+"
1818
}]
1919
}, {
2020
"category": "Demo Slam",
2121
"videos": [{
2222
"description": "Fusce id nisi turpis. Praesent viverra bibendum semper. Donec tristique, orci sed semper lacinia, quam erat rhoncus massa, non congue tellus est quis tellus. Sed mollis orci venenatis quam scelerisque accumsan. Curabitur a massa sit amet mi accumsan mollis sed et magna. Vivamus sed aliquam risus. Nulla eget dolor in elit facilisis mattis. Ut aliquet luctus lacus. Phasellus nec commodo erat. Praesent tempus id lectus ac scelerisque. Maecenas pretium cursus lectus id volutpat.",
23-
"sources": ["https://storage.googleapis.com/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%2020ft%20Search.mp4"],
24-
"card": "https://storage.googleapis.com/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%2020ft%20Search/card.jpg",
25-
"background": "https://storage.googleapis.com/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%2020ft%20Search/bg.jpg",
23+
"sources": ["https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%2020ft%20Search.mp4"],
24+
"card": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%2020ft%20Search/card.jpg",
25+
"background": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%2020ft%20Search/bg.jpg",
2626
"title": "20ft Search",
2727
"studio": "Google Demo Slam"
2828
}, {
2929
"description": "Fusce id nisi turpis. Praesent viverra bibendum semper. Donec tristique, orci sed semper lacinia, quam erat rhoncus massa, non congue tellus est quis tellus. Sed mollis orci venenatis quam scelerisque accumsan. Curabitur a massa sit amet mi accumsan mollis sed et magna. Vivamus sed aliquam risus. Nulla eget dolor in elit facilisis mattis. Ut aliquet luctus lacus. Phasellus nec commodo erat. Praesent tempus id lectus ac scelerisque. Maecenas pretium cursus lectus id volutpat.",
30-
"sources": ["https://storage.googleapis.com/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%20Balcony%20Toss.mp4"],
31-
"card": "https://storage.googleapis.com/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%20Balcony%20Toss/card.jpg",
32-
"background": "https://storage.googleapis.com/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%20Balcony%20Toss/bg.jpg",
30+
"sources": ["https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%20Balcony%20Toss.mp4"],
31+
"card": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%20Balcony%20Toss/card.jpg",
32+
"background": "https://storage.googleapis.com/androiddevelopers/samples_assets/android-tv/Sample%20videos/Demo%20Slam/Google%20Demo%20Slam_%20Balcony%20Toss/bg.jpg",
3333
"title": "Balcony Toss",
3434
"studio": "Google Demo Slam"
3535
}]

0 commit comments

Comments
 (0)