├── .gitignore
├── LICENSE.md
├── README.md
├── VideoInfoViewer
└── res
│ └── values
│ ├── admob_values.xml
│ ├── crittercism_values.xml
│ └── google_analytics_values.xml
├── app
├── build.gradle
├── libs
│ ├── isoviewer-1.0-RC-35.jar
│ └── libGoogleAnalyticsServices.jar
├── lint.xml
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── assets
│ ├── apache_license_2.txt
│ └── fonts
│ │ ├── Roboto-Black.ttf
│ │ ├── Roboto-BlackItalic.ttf
│ │ ├── Roboto-Bold.ttf
│ │ ├── Roboto-BoldCondensed.ttf
│ │ ├── Roboto-BoldCondensedItalic.ttf
│ │ ├── Roboto-BoldItalic.ttf
│ │ ├── Roboto-Condensed.ttf
│ │ ├── Roboto-CondensedItalic.ttf
│ │ ├── Roboto-Italic.ttf
│ │ ├── Roboto-Light.ttf
│ │ ├── Roboto-LightItalic.ttf
│ │ ├── Roboto-Medium.ttf
│ │ ├── Roboto-MediumItalic.ttf
│ │ ├── Roboto-Regular.ttf
│ │ ├── Roboto-Thin.ttf
│ │ └── Roboto-ThinItalic.ttf
│ ├── java
│ └── com
│ │ └── roryhool
│ │ └── videoinfoviewer
│ │ ├── CreditsFragment.java
│ │ ├── Extras.java
│ │ ├── MainActivity.java
│ │ ├── RecentVideosFragment.java
│ │ ├── SearchActivity.java
│ │ ├── SearchFragment.java
│ │ ├── VideoActivity.java
│ │ ├── VideoFragment.java
│ │ ├── VideoInfoViewerApp.java
│ │ ├── analytics
│ │ └── Analytics.java
│ │ ├── animation
│ │ └── ResizeAnimation.java
│ │ ├── atomfragments
│ │ ├── AtomInfoFragment.java
│ │ └── AtomStructureFragment.java
│ │ ├── data
│ │ └── Video.java
│ │ ├── search
│ │ └── SearchItem.java
│ │ ├── utils
│ │ ├── AtomHelper.java
│ │ ├── BoxUtils.java
│ │ ├── CursorHelper.java
│ │ ├── FontManager.java
│ │ ├── FormatUtils.java
│ │ ├── IsoFileCache.java
│ │ ├── Logg.java
│ │ ├── UriHelper.java
│ │ ├── VideoCache.java
│ │ └── ViewUtils.java
│ │ └── views
│ │ ├── BoxInfoView.java
│ │ ├── DisableableScrollView.java
│ │ ├── RobotoTextView.java
│ │ ├── ScaledTextureView.java
│ │ └── VideoPlayerView.java
│ └── res
│ ├── drawable-hdpi
│ ├── ic_add_white_36dp.png
│ ├── ic_arrow_forward_black_48dp.png
│ ├── ic_expand.png
│ ├── ic_launcher.png
│ ├── ic_media_pause2.png
│ ├── ic_media_play2.png
│ ├── ic_menu_add.png
│ ├── ic_menu_info_details.png
│ ├── ic_vidcontrol_fullscreen_off.png
│ └── ic_vidcontrol_fullscreen_on.png
│ ├── drawable-mdpi
│ ├── ic_add_white_36dp.png
│ ├── ic_arrow_forward_black_48dp.png
│ ├── ic_expand.png
│ ├── ic_launcher.png
│ ├── ic_media_pause2.png
│ ├── ic_media_play2.png
│ ├── ic_menu_add.png
│ ├── ic_menu_info_details.png
│ ├── ic_vidcontrol_fullscreen_off.png
│ └── ic_vidcontrol_fullscreen_on.png
│ ├── drawable-nodpi
│ └── activity_atom.xml
│ ├── drawable-xhdpi
│ ├── ic_add_white_36dp.png
│ ├── ic_arrow_forward_black_48dp.png
│ ├── ic_expand.png
│ ├── ic_launcher.png
│ ├── ic_media_pause2.png
│ ├── ic_media_play2.png
│ ├── ic_menu_add.png
│ ├── ic_menu_info_details.png
│ ├── ic_vidcontrol_fullscreen_off.png
│ └── ic_vidcontrol_fullscreen_on.png
│ ├── drawable-xxhdpi
│ ├── ic_add_white_36dp.png
│ ├── ic_arrow_forward_black_48dp.png
│ ├── ic_launcher.png
│ ├── ic_menu_add.png
│ └── ic_menu_info_details.png
│ ├── drawable-xxxhdpi
│ ├── ic_add_white_36dp.png
│ └── ic_arrow_forward_black_48dp.png
│ ├── drawable
│ ├── button_selector.xml
│ ├── expand_background_selector.xml
│ ├── expand_button_selector.xml
│ ├── info_button_selector.xml
│ └── video_selector.xml
│ ├── layout
│ ├── activity_atom.xml
│ ├── activity_main.xml
│ ├── activity_search.xml
│ ├── activity_video.xml
│ ├── atom.xml
│ ├── box_info.xml
│ ├── fifty_fifty_layout.xml
│ ├── fragment_atom_structure.xml
│ ├── fragment_box_info.xml
│ ├── fragment_credits.xml
│ ├── fragment_recent_videos.xml
│ ├── fragment_search.xml
│ ├── fragment_video.xml
│ ├── matrix_item_layout.xml
│ ├── matrix_layout.xml
│ ├── recent_video_layout.xml
│ ├── search_item.xml
│ ├── string_array_layout.xml
│ ├── toolbar.xml
│ └── video_player.xml
│ ├── menu
│ ├── main.xml
│ └── video.xml
│ ├── values-sw600dp
│ └── dimens.xml
│ ├── values-sw720dp-land
│ └── dimens.xml
│ ├── values-v21
│ └── styles.xml
│ ├── values
│ ├── admob_values.xml
│ ├── colors.xml
│ ├── dimens.xml
│ ├── strings.xml
│ └── styles.xml
│ └── xml
│ ├── global_tracker.xml
│ └── searchable_video.xml
├── build.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── import-summary.txt
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | # built application files
2 | *.apk
3 | *.ap_
4 |
5 | # files for the dex VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # generated files
12 | bin/
13 |
14 | gen/
15 |
16 | obj/
17 |
18 | # Android Studio
19 | .idea
20 | #.idea/workspace.xml - remove # and delete .idea if it better suit your needs.
21 | .gradle
22 | build/
23 | .gradle/
24 |
25 | .DS_Store
26 |
27 | **/build
28 | *.iml
29 | *.iws
30 | *.ipr
31 | *.swp
32 | *~
33 |
34 | # Local environment setup
35 | local.properties
36 | fabric.properties
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 |
2 | Copyright (c) 2016 Rory Hool
3 |
4 | Licensed under the Apache License, Version 2.0 (the "License");
5 | you may not use this file except in compliance with the License.
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an "AS IS" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
13 |
14 | Apache License
15 | Version 2.0, January 2004
16 | http://www.apache.org/licenses/
17 |
18 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
19 |
20 | 1. Definitions.
21 |
22 | "License" shall mean the terms and conditions for use, reproduction,
23 | and distribution as defined by Sections 1 through 9 of this document.
24 |
25 | "Licensor" shall mean the copyright owner or entity authorized by
26 | the copyright owner that is granting the License.
27 |
28 | "Legal Entity" shall mean the union of the acting entity and all
29 | other entities that control, are controlled by, or are under common
30 | control with that entity. For the purposes of this definition,
31 | "control" means (i) the power, direct or indirect, to cause the
32 | direction or management of such entity, whether by contract or
33 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
34 | outstanding shares, or (iii) beneficial ownership of such entity.
35 |
36 | "You" (or "Your") shall mean an individual or Legal Entity
37 | exercising permissions granted by this License.
38 |
39 | "Source" form shall mean the preferred form for making modifications,
40 | including but not limited to software source code, documentation
41 | source, and configuration files.
42 |
43 | "Object" form shall mean any form resulting from mechanical
44 | transformation or translation of a Source form, including but
45 | not limited to compiled object code, generated documentation,
46 | and conversions to other media types.
47 |
48 | "Work" shall mean the work of authorship, whether in Source or
49 | Object form, made available under the License, as indicated by a
50 | copyright notice that is included in or attached to the work
51 | (an example is provided in the Appendix below).
52 |
53 | "Derivative Works" shall mean any work, whether in Source or Object
54 | form, that is based on (or derived from) the Work and for which the
55 | editorial revisions, annotations, elaborations, or other modifications
56 | represent, as a whole, an original work of authorship. For the purposes
57 | of this License, Derivative Works shall not include works that remain
58 | separable from, or merely link (or bind by name) to the interfaces of,
59 | the Work and Derivative Works thereof.
60 |
61 | "Contribution" shall mean any work of authorship, including
62 | the original version of the Work and any modifications or additions
63 | to that Work or Derivative Works thereof, that is intentionally
64 | submitted to Licensor for inclusion in the Work by the copyright owner
65 | or by an individual or Legal Entity authorized to submit on behalf of
66 | the copyright owner. For the purposes of this definition, "submitted"
67 | means any form of electronic, verbal, or written communication sent
68 | to the Licensor or its representatives, including but not limited to
69 | communication on electronic mailing lists, source code control systems,
70 | and issue tracking systems that are managed by, or on behalf of, the
71 | Licensor for the purpose of discussing and improving the Work, but
72 | excluding communication that is conspicuously marked or otherwise
73 | designated in writing by the copyright owner as "Not a Contribution."
74 |
75 | "Contributor" shall mean Licensor and any individual or Legal Entity
76 | on behalf of whom a Contribution has been received by Licensor and
77 | subsequently incorporated within the Work.
78 |
79 | 2. Grant of Copyright License. Subject to the terms and conditions of
80 | this License, each Contributor hereby grants to You a perpetual,
81 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82 | copyright license to reproduce, prepare Derivative Works of,
83 | publicly display, publicly perform, sublicense, and distribute the
84 | Work and such Derivative Works in Source or Object form.
85 |
86 | 3. Grant of Patent License. Subject to the terms and conditions of
87 | this License, each Contributor hereby grants to You a perpetual,
88 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
89 | (except as stated in this section) patent license to make, have made,
90 | use, offer to sell, sell, import, and otherwise transfer the Work,
91 | where such license applies only to those patent claims licensable
92 | by such Contributor that are necessarily infringed by their
93 | Contribution(s) alone or by combination of their Contribution(s)
94 | with the Work to which such Contribution(s) was submitted. If You
95 | institute patent litigation against any entity (including a
96 | cross-claim or counterclaim in a lawsuit) alleging that the Work
97 | or a Contribution incorporated within the Work constitutes direct
98 | or contributory patent infringement, then any patent licenses
99 | granted to You under this License for that Work shall terminate
100 | as of the date such litigation is filed.
101 |
102 | 4. Redistribution. You may reproduce and distribute copies of the
103 | Work or Derivative Works thereof in any medium, with or without
104 | modifications, and in Source or Object form, provided that You
105 | meet the following conditions:
106 |
107 | (a) You must give any other recipients of the Work or
108 | Derivative Works a copy of this License; and
109 |
110 | (b) You must cause any modified files to carry prominent notices
111 | stating that You changed the files; and
112 |
113 | (c) You must retain, in the Source form of any Derivative Works
114 | that You distribute, all copyright, patent, trademark, and
115 | attribution notices from the Source form of the Work,
116 | excluding those notices that do not pertain to any part of
117 | the Derivative Works; and
118 |
119 | (d) If the Work includes a "NOTICE" text file as part of its
120 | distribution, then any Derivative Works that You distribute must
121 | include a readable copy of the attribution notices contained
122 | within such NOTICE file, excluding those notices that do not
123 | pertain to any part of the Derivative Works, in at least one
124 | of the following places: within a NOTICE text file distributed
125 | as part of the Derivative Works; within the Source form or
126 | documentation, if provided along with the Derivative Works; or,
127 | within a display generated by the Derivative Works, if and
128 | wherever such third-party notices normally appear. The contents
129 | of the NOTICE file are for informational purposes only and
130 | do not modify the License. You may add Your own attribution
131 | notices within Derivative Works that You distribute, alongside
132 | or as an addendum to the NOTICE text from the Work, provided
133 | that such additional attribution notices cannot be construed
134 | as modifying the License.
135 |
136 | You may add Your own copyright statement to Your modifications and
137 | may provide additional or different license terms and conditions
138 | for use, reproduction, or distribution of Your modifications, or
139 | for any such Derivative Works as a whole, provided Your use,
140 | reproduction, and distribution of the Work otherwise complies with
141 | the conditions stated in this License.
142 |
143 | 5. Submission of Contributions. Unless You explicitly state otherwise,
144 | any Contribution intentionally submitted for inclusion in the Work
145 | by You to the Licensor shall be under the terms and conditions of
146 | this License, without any additional terms or conditions.
147 | Notwithstanding the above, nothing herein shall supersede or modify
148 | the terms of any separate license agreement you may have executed
149 | with Licensor regarding such Contributions.
150 |
151 | 6. Trademarks. This License does not grant permission to use the trade
152 | names, trademarks, service marks, or product names of the Licensor,
153 | except as required for reasonable and customary use in describing the
154 | origin of the Work and reproducing the content of the NOTICE file.
155 |
156 | 7. Disclaimer of Warranty. Unless required by applicable law or
157 | agreed to in writing, Licensor provides the Work (and each
158 | Contributor provides its Contributions) on an "AS IS" BASIS,
159 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
160 | implied, including, without limitation, any warranties or conditions
161 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
162 | PARTICULAR PURPOSE. You are solely responsible for determining the
163 | appropriateness of using or redistributing the Work and assume any
164 | risks associated with Your exercise of permissions under this License.
165 |
166 | 8. Limitation of Liability. In no event and under no legal theory,
167 | whether in tort (including negligence), contract, or otherwise,
168 | unless required by applicable law (such as deliberate and grossly
169 | negligent acts) or agreed to in writing, shall any Contributor be
170 | liable to You for damages, including any direct, indirect, special,
171 | incidental, or consequential damages of any character arising as a
172 | result of this License or out of the use or inability to use the
173 | Work (including but not limited to damages for loss of goodwill,
174 | work stoppage, computer failure or malfunction, or any and all
175 | other commercial damages or losses), even if such Contributor
176 | has been advised of the possibility of such damages.
177 |
178 | 9. Accepting Warranty or Additional Liability. While redistributing
179 | the Work or Derivative Works thereof, You may choose to offer,
180 | and charge a fee for, acceptance of support, warranty, indemnity,
181 | or other liability obligations and/or rights consistent with this
182 | License. However, in accepting such obligations, You may act only
183 | on Your own behalf and on Your sole responsibility, not on behalf
184 | of any other Contributor, and only if You agree to indemnify,
185 | defend, and hold each Contributor harmless for any liability
186 | incurred by, or claims asserted against, such Contributor by reason
187 | of your accepting any such warranty or additional liability.
188 |
189 | END OF TERMS AND CONDITIONS
190 |
191 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Video Info Viewer
2 |
3 | Video Info Viewer is an open source app that allows you to view metadata about videos on your Android devices. You can view the atom structure of the MPEG-4 file format, and inspect resolution, frame rate, and more.
4 |
5 | ## License
6 |
7 | Video Info Viewer is released under the Apache License, Version 2.0. See [LICENSE.md] (https://github.com/hoolrory/VideoInfoViewer/blob/master/LICENSE.md).
8 |
9 | In the Google Play Store: https://play.google.com/store/apps/details?id=com.roryhool.videoinfoviewer
10 |
11 | Also available for iOS: https://github.com/hoolrory/VideoInfoViewer-iOS
12 |
--------------------------------------------------------------------------------
/VideoInfoViewer/res/values/admob_values.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/VideoInfoViewer/res/values/crittercism_values.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/VideoInfoViewer/res/values/google_analytics_values.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | true
12 |
13 |
14 | true
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'me.tatarka.retrolambda'
3 | apply plugin: 'io.fabric'
4 |
5 | retrolambda {
6 | // read java8home from gradle.properties or JAVA8_HOME from environment
7 | jdk project.hasProperty( 'java8home' ) ? java8home : System.getenv( "JAVA8_HOME" )
8 | }
9 |
10 | android {
11 | compileSdkVersion 23
12 | buildToolsVersion "23.0.1"
13 |
14 | compileOptions {
15 | sourceCompatibility JavaVersion.VERSION_1_8
16 | targetCompatibility JavaVersion.VERSION_1_8
17 | }
18 |
19 | defaultConfig {
20 | applicationId "com.roryhool.videoinfoviewer"
21 | minSdkVersion 16
22 | targetSdkVersion 23
23 | }
24 |
25 | buildTypes {
26 | release {
27 | }
28 | debug {
29 | debuggable true
30 | }
31 | }
32 | }
33 |
34 | dependencies {
35 | compile 'com.android.support:appcompat-v7:23.0.1'
36 | compile "com.android.support:cardview-v7:23.0.1"
37 | compile 'com.android.support:design:23.0.1'
38 | compile 'com.android.support:recyclerview-v7:23.0.1'
39 | compile 'com.android.support:support-v4:23.0.1'
40 | compile 'com.google.android.gms:play-services-ads:7.5.0'
41 | compile 'com.google.code.gson:gson:2.2.4'
42 | compile 'com.squareup:otto:1.3.8'
43 | compile 'io.reactivex:rxandroid:0.24.0'
44 | compile 'io.reactivex:rxjava:1.0.0'
45 | compile files('libs/isoviewer-1.0-RC-35.jar')
46 | compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
47 | transitive = true;
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/app/libs/isoviewer-1.0-RC-35.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/libs/isoviewer-1.0-RC-35.jar
--------------------------------------------------------------------------------
/app/libs/libGoogleAnalyticsServices.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/libs/libGoogleAnalyticsServices.jar
--------------------------------------------------------------------------------
/app/lint.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
22 |
23 |
26 |
27 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
57 |
58 |
59 |
60 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
73 |
74 |
77 |
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/app/src/main/assets/apache_license_2.txt:
--------------------------------------------------------------------------------
1 | Apache License
2 |
3 | Version 2.0, January 2004
4 |
5 | http://www.apache.org/licenses/
6 |
7 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8 |
9 | 1. Definitions.
10 |
11 | "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12 |
13 | "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16 |
17 | "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18 |
19 | "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20 |
21 | "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
22 |
23 | "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
24 |
25 | "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
26 |
27 | "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
28 |
29 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
30 |
31 | 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32 |
33 | 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
34 |
35 | 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
36 |
37 | You must give any other recipients of the Work or Derivative Works a copy of this License; and
38 | You must cause any modified files to carry prominent notices stating that You changed the files; and
39 | You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40 | If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
41 |
42 | You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
43 | 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
44 |
45 | 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
46 |
47 | 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
48 |
49 | 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
50 |
51 | 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
52 |
53 | END OF TERMS AND CONDITIONS
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-Black.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-BlackItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-BlackItalic.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-Bold.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-BoldCondensed.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-BoldCondensed.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-BoldCondensedItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-BoldCondensedItalic.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-BoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-BoldItalic.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-Condensed.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-Condensed.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-CondensedItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-CondensedItalic.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-Italic.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-Light.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-LightItalic.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-MediumItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-MediumItalic.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-Regular.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-Thin.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-Thin.ttf
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Roboto-ThinItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hoolrory/VideoInfoViewer-Android/f4f5d0aa50be000f393a7a818155643496dae20a/app/src/main/assets/fonts/Roboto-ThinItalic.ttf
--------------------------------------------------------------------------------
/app/src/main/java/com/roryhool/videoinfoviewer/CreditsFragment.java:
--------------------------------------------------------------------------------
1 | /**
2 | Copyright (c) 2016 Rory Hool
3 |
4 | Licensed under the Apache License, Version 2.0 (the "License");
5 | you may not use this file except in compliance with the License.
6 | You may obtain a copy of the License at
7 |
8 | http://www.apache.org/licenses/LICENSE-2.0
9 |
10 | Unless required by applicable law or agreed to in writing, software
11 | distributed under the License is distributed on an "AS IS" BASIS,
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | See the License for the specific language governing permissions and
14 | limitations under the License.
15 | **/
16 |
17 | package com.roryhool.videoinfoviewer;
18 |
19 | import java.io.IOException;
20 | import java.io.InputStream;
21 |
22 | import android.os.Bundle;
23 | import android.support.v4.app.Fragment;
24 | import android.text.method.LinkMovementMethod;
25 | import android.view.LayoutInflater;
26 | import android.view.Menu;
27 | import android.view.MenuInflater;
28 | import android.view.View;
29 | import android.view.ViewGroup;
30 | import android.widget.TextView;
31 |
32 | public class CreditsFragment extends Fragment {
33 |
34 | @Override
35 | public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ) {
36 | View view = inflater.inflate( R.layout.fragment_credits, container, false );
37 |
38 | setHasOptionsMenu( true );
39 |
40 | try {
41 | InputStream is = view.getContext().getAssets().open( "apache_license_2.txt" );
42 | int size = is.available();
43 |
44 | byte[] buffer = new byte[size];
45 | is.read( buffer );
46 | is.close();
47 |
48 | String str = new String( buffer );
49 | TextView textView = (TextView) view.findViewById( R.id.apache_license );
50 | textView.setText( str );
51 | } catch ( IOException e ) {
52 | e.printStackTrace();
53 | }
54 |
55 | TextView iconCreditText = (TextView) view.findViewById( R.id.icon_credit );
56 | iconCreditText.setMovementMethod( LinkMovementMethod.getInstance() );
57 |
58 | TextView mp4parserCreditText = (TextView) view.findViewById( R.id.mp4parser_credit );
59 | mp4parserCreditText.setMovementMethod( LinkMovementMethod.getInstance() );
60 |
61 | TextView gsonCreditText = (TextView) view.findViewById( R.id.gson_credit );
62 | gsonCreditText.setMovementMethod( LinkMovementMethod.getInstance() );
63 |
64 | TextView reactiveXCreditText = (TextView) view.findViewById( R.id.reactivex_credit );
65 | reactiveXCreditText.setMovementMethod( LinkMovementMethod.getInstance() );
66 |
67 | TextView reactiveXAndroidCreditText = (TextView) view.findViewById( R.id.reactivexandroid_credit );
68 | reactiveXAndroidCreditText.setMovementMethod( LinkMovementMethod.getInstance() );
69 |
70 | TextView ottoCreditText = (TextView) view.findViewById( R.id.otto_credit );
71 | ottoCreditText.setMovementMethod( LinkMovementMethod.getInstance() );
72 |
73 | TextView retrolambdaCreditText = (TextView) view.findViewById( R.id.retrolambda_credit );
74 | retrolambdaCreditText.setMovementMethod( LinkMovementMethod.getInstance() );
75 |
76 | TextView gradleRetrolambdaCreditText = (TextView) view.findViewById( R.id.gradle_retrolambda_credit );
77 | gradleRetrolambdaCreditText.setMovementMethod( LinkMovementMethod.getInstance() );
78 |
79 | return view;
80 | }
81 |
82 | @Override
83 | public void onCreateOptionsMenu( Menu menu, MenuInflater inflater ) {
84 | super.onCreateOptionsMenu( menu, inflater );
85 | menu.clear();
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/app/src/main/java/com/roryhool/videoinfoviewer/Extras.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2016 Rory Hool
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | **/
16 |
17 | package com.roryhool.videoinfoviewer;
18 |
19 | public class Extras {
20 | public static final String EXTRA_VIDEO_CACHE_ID = "EXTRA_VIDEO_CACHE_ID";
21 | public static final String EXTRA_BOX_ID = "EXTRA_BOX_ID";
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/java/com/roryhool/videoinfoviewer/MainActivity.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2016 Rory Hool
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | **/
16 |
17 | package com.roryhool.videoinfoviewer;
18 |
19 | import android.os.Bundle;
20 | import android.support.v4.app.FragmentManager;
21 | import android.support.v4.app.FragmentTransaction;
22 | import android.support.v7.app.AppCompatActivity;
23 | import android.support.v7.widget.Toolbar;
24 | import android.widget.FrameLayout;
25 |
26 | import com.google.android.gms.ads.AdRequest;
27 | import com.google.android.gms.ads.AdSize;
28 | import com.google.android.gms.ads.AdView;
29 | import com.google.android.gms.analytics.HitBuilders;
30 |
31 | public class MainActivity extends AppCompatActivity {
32 |
33 | protected Toolbar mToolbar;
34 | protected FrameLayout mAdFrame;
35 | protected AdView mAdView;
36 |
37 | @Override
38 | public void onCreate( Bundle savedInstanceState ) {
39 | super.onCreate( savedInstanceState );
40 |
41 | setContentView( R.layout.activity_main );
42 |
43 | mAdFrame = (FrameLayout) findViewById( R.id.adFrame );
44 | mToolbar = (Toolbar) findViewById( R.id.toolbar );
45 |
46 | if ( savedInstanceState == null ) {
47 | FragmentManager manager = getSupportFragmentManager();
48 | FragmentTransaction fragTransaction = manager.beginTransaction();
49 | fragTransaction.add( R.id.fragment_frame, new RecentVideosFragment() );
50 | fragTransaction.commit();
51 | }
52 |
53 | setSupportActionBar( mToolbar );
54 | }
55 |
56 | @Override
57 | public void onStart() {
58 | super.onStart();
59 |
60 | if ( !BuildConfig.DEBUG ) {
61 | setupAds();
62 | }
63 |
64 | VideoInfoViewerApp.getDefaultTracker().setScreenName( MainActivity.class.getSimpleName() );
65 | VideoInfoViewerApp.getDefaultTracker().send( new HitBuilders.ScreenViewBuilder().build() );
66 | }
67 |
68 | private void setupAds() {
69 | String admobAdUnitId = getString( R.string.main_activity_admob_ad_unit_id );
70 |
71 | if ( admobAdUnitId != null && !admobAdUnitId.equals( ( "" ) ) ) {
72 | mAdView = new AdView( this );
73 | mAdView.setAdSize( AdSize.BANNER );
74 | mAdView.setAdUnitId( admobAdUnitId );
75 |
76 | mAdFrame.addView( mAdView );
77 |
78 | String[] testDeviceIds = getResources().getStringArray( R.array.admob_test_device_ids );
79 |
80 | AdRequest.Builder adRequestBuilder = new AdRequest.Builder();
81 | adRequestBuilder.addTestDevice( AdRequest.DEVICE_ID_EMULATOR );
82 |
83 | for ( int i = 0; i < testDeviceIds.length; i++ ) {
84 | adRequestBuilder.addTestDevice( testDeviceIds[i] );
85 | }
86 |
87 | AdRequest adRequest = adRequestBuilder.build();
88 | mAdView.loadAd( adRequest );
89 | }
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/app/src/main/java/com/roryhool/videoinfoviewer/RecentVideosFragment.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2016 Rory Hool
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | **/
16 |
17 | package com.roryhool.videoinfoviewer;
18 |
19 | import android.app.Activity;
20 | import android.content.Context;
21 | import android.content.Intent;
22 | import android.net.Uri;
23 | import android.os.Build;
24 | import android.os.Bundle;
25 | import android.support.design.widget.FloatingActionButton;
26 | import android.support.v4.app.Fragment;
27 | import android.support.v4.app.FragmentActivity;
28 | import android.support.v4.app.FragmentManager;
29 | import android.support.v4.app.FragmentTransaction;
30 | import android.view.LayoutInflater;
31 | import android.view.Menu;
32 | import android.view.MenuInflater;
33 | import android.view.MenuItem;
34 | import android.view.View;
35 | import android.view.ViewGroup;
36 | import android.widget.AdapterView;
37 | import android.widget.ArrayAdapter;
38 | import android.widget.ImageView;
39 | import android.widget.ListView;
40 | import android.widget.TextView;
41 |
42 | import com.roryhool.videoinfoviewer.analytics.Analytics;
43 | import com.roryhool.videoinfoviewer.data.Video;
44 | import com.roryhool.videoinfoviewer.utils.VideoCache;
45 |
46 | import java.util.List;
47 |
48 | public class RecentVideosFragment extends Fragment {
49 |
50 | protected int SELECT_VIDEO_CODE = 100;
51 |
52 | protected ListView mRecentVideosList;
53 | protected FloatingActionButton mFab;
54 |
55 | protected RecentVideosAdapter mAdapter;
56 |
57 | @Override
58 | public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ) {
59 | View view = inflater.inflate( R.layout.fragment_recent_videos, container, false );
60 |
61 | mRecentVideosList = (ListView) view.findViewById( R.id.recentVideosList );
62 |
63 | mFab = (FloatingActionButton) view.findViewById( R.id.fab );
64 | mFab.setOnClickListener( this::onClickFab );
65 |
66 | List