Commit graph

283 commits

Author SHA1 Message Date
Xavi Artigas
43cba542b7 Clicking on the currently selected file accepts it. 2012-11-06 17:46:50 +01:00
Xavi Artigas
34b3398b26 Simplify file chooser row layout and allow showing file names longer than the text view. 2012-11-06 17:36:51 +01:00
Xavi Artigas
d6448c8b2e Major revamp of the file chooser dialog to: Remove unused code/layout/strings, remember last visited folder, add a cancel button and beautify a bit the dialogs. 2012-11-06 13:19:27 +01:00
Xavi Artigas
deb87d4a23 Better integration for local files with unknown MIME types. 2012-11-06 10:49:43 +01:00
Xavi Artigas
73ca70339c Register tutorial 5 as a media player, so other applications (including browsers) can pass URIs to us. Unfortunately, the complete list of supported protocols and file extensions has to be provided, as Android does not seem to infer MIME types from file names. 2012-11-05 18:41:49 +01:00
Xavi Artigas
fe3c684e90 XML formatting 2012-11-05 15:47:07 +01:00
Xavi Artigas
89e5a89fe6 Fix tutorial 5 seeking to last position after opening new media 2012-11-05 13:37:27 +01:00
Xavi Artigas
2635e59fb4 Revamp tutorial 5 code to continue what we have been showing in all previous tutorials. Drop unused code and add goodies like media size reporting and seek throttling. 2012-11-05 10:36:01 +01:00
Sebastian Dröge
ac07b88df9 Add GSTREAMER_EXTRA_DEPS as required for Android tutorials 2012-11-02 13:14:04 +01:00
Xavi Artigas
df3c6e3d3e Comment typo 2012-10-30 18:16:57 +01:00
Xavi Artigas
06092ab217 Better approach to is_local_media 2012-10-30 17:07:16 +01:00
Xavi Artigas
5225d14d9c Comments 2012-10-30 12:28:10 +01:00
Xavi Artigas
b0cff5fa8f Comment 2012-10-30 10:38:50 +01:00
Sebastian Dröge
d357a0332a Use WakeLock to prevent the screen from blanking during playback 2012-10-30 10:36:31 +01:00
Xavi Artigas
cfcfb180e6 Comments and code beautification. Remove useless UI messages. 2012-10-29 17:54:13 +01:00
Xavi Artigas
e752ba790e Fix seek throttling again 2012-10-29 17:08:21 +01:00
Xavi Artigas
a41783bfe1 Fix seek throttling. Comments. Method reordering. 2012-10-29 12:46:16 +01:00
Xavi Artigas
a67b8edbd9 Comments 2012-10-29 12:10:36 +01:00
Xavi Artigas
73c3dbf35b Remove the 'fix' for successive orientation changes moving the clip slowly back in time, as it does not work. 2012-10-26 14:50:45 +02:00
Xavi Artigas
387de5544c Slightly better buffering UI messages 2012-10-26 14:04:04 +02:00
Xavi Artigas
7a319d7fee Add remaining bits from tutorial 5 to tutorial 4: Seeking, buffering, etc 2012-10-25 18:21:52 +02:00
Andoni Morales Alastruey
99a01c6418 Reorder tutorials 2012-10-25 17:47:41 +02:00
Andoni Morales Alastruey
e8b6202a61 tutorials: fix missing gtk libs link 2012-10-25 17:12:04 +02:00
Xavi Artigas
d3e1c8fc46 Use a different clip which does not have letterboxing, to better exemplify aspect ratio preservation. Comments. 2012-10-25 10:11:30 +02:00
Xavi Artigas
39a036ccd1 Comments and debug output 2012-10-24 18:27:19 +02:00
Xavi Artigas
7170790b5a Beautify subtitle flag 2012-10-24 18:23:31 +02:00
Xavi Artigas
df304f1bae Retrieve media size from video sink once the pipe is in PAUSED and infom the application. 2012-10-24 18:14:36 +02:00
Xavi Artigas
9b4ce1ee63 Some advances, nothing functional. 2012-10-24 12:41:53 +02:00
Xavi Artigas
ff1b8da189 Initial Android Tutorial 4 2012-10-23 16:59:18 +02:00
Xavi Artigas
3c81bfb207 Tutorial 3 requires OpenGL ES 2.0 2012-10-23 16:48:22 +02:00
Xavi Artigas
ba19badffa Change screen name from Android tutorials to GStreamer tutorials. It think this makes more sense once the tutorials are installed on the device. 2012-10-23 16:22:37 +02:00
Xavi Artigas
15a7f54fb0 Comment 2012-10-23 15:52:04 +02:00
Xavi Artigas
349cad43cc Fix the case where a new surface is provided without destroying the previous one. We have never observed this scenario, tough. 2012-10-23 12:30:25 +02:00
Xavi Artigas
a62471700f Code cleanup: only call gst_x_overlay_set_window_handle from one place. 2012-10-22 18:17:31 +02:00
Xavi Artigas
1c4d79835a Remove runtime detection of media size as it causes the layout to be recalculated once a frame has already been shown, and it looks ugly. A different solution will be tried for future tutorials. 2012-10-22 12:14:21 +02:00
Xavi Artigas
b0e6a3ba73 Missing braces! 2012-10-19 15:38:12 +02:00
Xavi Artigas
a35d1f390c Whitespacey in layout 2012-10-19 14:38:46 +02:00
Xavi Artigas
67461d3156 Comment 2012-10-19 14:36:01 +02:00
Xavi Artigas
dea0bd1f0b Implement remaining aspect ratio calculations 2012-10-19 14:35:10 +02:00
Xavi Artigas
3cfa87cbb7 Give the default media size a 4:3 aspect ratio. This will make the tutorial look right, but it is not a fix for the first frame jumping into position. 2012-10-19 14:05:41 +02:00
Xavi Artigas
e8010b654f Fix (workaround?, hack?) for expose() having the wrong surface size. 2012-10-19 14:03:35 +02:00
Xavi Artigas
efbde418b2 Package for the GStreamer class changed to com.gstreamer 2012-10-19 10:37:21 +02:00
Xavi Artigas
334661044f Implement Aspect ratio preservation in GStreamerSurfaceView. Fix some corner cases that this triggers in the surface size reporting code. 2012-10-18 17:55:43 +02:00
Xavi Artigas
aeefdd86bc Fix memleak :) 2012-10-18 13:40:42 +02:00
Xavi Artigas
2f602601f0 Remove video sink debug 2012-10-17 15:58:17 +02:00
Xavi Artigas
a00f4d59d3 Add warptv to the pipeline, for added awesomeness. 2012-10-17 15:49:14 +02:00
Xavi Artigas
33450c17d2 Proper reporting of media size. Now the Android layout controls the appearance of the clip, instead of it always being maximized. 2012-10-17 14:01:12 +02:00
Xavi Artigas
c4a3f608e5 Simplify playing state tracking (and fix some problems) 2012-10-17 11:41:14 +02:00
Xavi Artigas
124f71f179 Remove unnecessary comment 2012-10-17 11:33:55 +02:00
Xavi Artigas
6b6dddde98 Simplify playing state tracking (and fix some problems) 2012-10-17 11:29:51 +02:00
Xavi Artigas
2fd79e5b3f Whitespacey & comments 2012-10-17 10:28:53 +02:00
Xavi Artigas
ad13250d93 Some layout beautifying 2012-10-16 11:45:34 +02:00
Xavi Artigas
8548d90aac Make sure the pipeline is in READY state before trying to set any window handle to the video sink. Send the app the Initialized signal after surface re-creation. 2012-10-16 11:14:08 +02:00
Xavi Artigas
ad8f0daffa With proper debug output 2012-10-15 18:50:28 +02:00
Xavi Artigas
10a4d1a28c Tutorial 3 2012-10-15 18:48:58 +02:00
Xavi Artigas
1c3c4ee7b7 Do not use GST_ERROR before GStreamer has been initialized (tutorial 5) 2012-10-15 14:03:40 +02:00
Xavi Artigas
0ccc6fe8c8 Do not use GST_ERROR before GStreamer has been initialized (tutorial 2) 2012-10-15 13:50:34 +02:00
Xavi Artigas
332de96d51 Fix tutorial number in debug output 2012-10-15 13:21:47 +02:00
Xavi Artigas
6bdae5f2a6 Do not use GST_ERROR before GStreamer has been initialized 2012-10-15 13:19:27 +02:00
Xavi Artigas
686de232a6 Make our GLib context is the default one to make sure GSource created from libraries using the default context are properly disposed of. 2012-10-11 10:52:45 +02:00
Xavi Artigas
e7199e5a18 Make all methods static except JNI_OnLoad 2012-10-11 10:37:49 +02:00
Xavi Artigas
b6243454c8 Proper initialization of GSources (setup before attach) 2012-10-10 15:43:25 +02:00
Xavi Artigas
ec305a0826 Beautify the layout a bit 2012-10-10 12:15:38 +02:00
Xavi Artigas
108d3a1ffb Fix button re-enabling: it has to be done from the UI thread. 2012-10-10 11:32:26 +02:00
Xavi Artigas
58a597aa20 Add audioconvert and audioresample, for the sake of completeness. 2012-10-09 17:11:11 +02:00
Xavi Artigas
bce0f1d2fc New icons to better follow the Android design guidelines (and get rid of some Android Lint warnings) 2012-10-09 12:42:24 +02:00
Xavi Artigas
a5d36ecb3e Regexp mangled some comments 2012-10-09 10:41:32 +02:00
Xavi Artigas
768e602485 Changed all comments to //, because Confluence has problems syntax highlighting Java with /* */ comments. Awesome. 2012-10-09 10:39:38 +02:00
Xavi Artigas
4b608c3ca7 Add comments. Whitespace. Some function renaming. 2012-10-08 15:36:16 +02:00
Xavi Artigas
4ce09964d9 Initial tutorial 2 2012-10-08 11:55:59 +02:00
Xavi Artigas
3c3388a5a6 Remove unused GIO module from Android.mk 2012-10-05 15:31:50 +02:00
Xavi Artigas
3df9913eb9 More copyright notices removed 2012-10-05 14:56:03 +02:00
Xavi Artigas
e7b066f06e Remove copyright notices 2012-10-05 11:21:26 +02:00
Xavi Artigas
a99fac623c Whitespacey 2012-10-04 17:54:41 +02:00
Xavi Artigas
0a57e2c403 Move icons to proper folder. Replace generic Android icon with GStreamer SDK. 2012-10-04 16:22:03 +02:00
Sebastian Dröge
f3a259d959 Reset duration after changing the URI 2012-10-04 16:15:59 +02:00
Xavi Artigas
87daf274ca First tutorial. 2012-10-04 12:15:02 +02:00
Sebastian Dröge
5389c1548b Disable subtitles for now 2012-10-03 16:38:03 +02:00
Xavi Artigas
e030812824 Rename tutorial-1 to tutorial-5 2012-10-03 14:17:08 +02:00
Xavi Artigas
90638fdd0e Highlight selected file in the file dialog chooser (could be highlighted MORE). 2012-10-03 13:40:50 +02:00
Sebastian Dröge
ac82125966 Link with all the useful plugins 2012-10-03 12:14:45 +02:00
Sebastian Dröge
2bec2df002 Add copyright/license foo for the file dialog 2012-10-03 11:07:17 +02:00
Sebastian Dröge
e67b567904 Add new filechooser 2012-10-02 16:54:27 +02:00
Sebastian Dröge
e3b897f4b5 Add support for selecting files 2012-10-02 13:31:54 +02:00
Xavi Artigas
f574c00ea1 Merge branch 'android' 2012-10-01 17:43:12 +02:00
Sebastian Dröge
9a4b1977d4 Fix seeking 2012-10-01 16:56:49 +02:00
Sebastian Dröge
5ad29d568e Don't queue multiple timeouts for delayed seeking 2012-10-01 15:46:17 +02:00
Sebastian Dröge
3123532841 Implement throttling of seeks, only one seek per 500ms 2012-10-01 14:43:33 +02:00
Xavi Artigas
76c883fb8b Fix restoration of playing state after orientation change 2012-10-01 14:27:25 +02:00
Xavi Artigas
af9437ff7d Now that playbin2 is used, remove the vsink variable, and use factory_make instead of parse_launch. 2012-10-01 12:47:09 +02:00
Xavi Artigas
b809b23b24 Whitespacey 2012-10-01 12:37:57 +02:00
Xavi Artigas
ceaab451f2 Fix Seeking: Disable scrubbing seek for remote files, remember playing state after seek. Use media from gstreamer.com instead of freedesktop.org (weird buffering from the later) 2012-10-01 12:37:07 +02:00
Xavi Artigas
cf083414f6 Add API to set the URI instead of hardcoding it in the gst_launch 2012-10-01 10:41:23 +02:00
Sebastian Dröge
74543783c0 Only set GSTREAMER_SDK_ROOT if it wasn't set yet 2012-10-01 10:08:52 +02:00
Xavi Artigas
929f8eb55f Some debug output beautifying 2012-09-28 15:27:33 +02:00
Xavi Artigas
9eb55274bc Fix Android.mk and make it use GSTREAMER_SDK_ROOT_ANDROID 2012-09-28 12:12:21 +02:00
Sebastian Dröge
2ca5b7356c Use the OGV variant by default and use the fd.o server 2012-09-28 09:31:35 +02:00
Sebastian Dröge
555c456e9e Add some UI feedback for the buffering messages 2012-09-27 14:18:05 +02:00
Sebastian Dröge
6184907bbf Make sure to not go out of the target state due to buffering messages
E.g. go to PLAYING although we're only requested to PAUSED
2012-09-26 13:46:47 +02:00
Sebastian Dröge
3e795c9a19 Implement handling of buffering and clock-lost messages 2012-09-26 10:27:27 +02:00