åææ¦ï¼Androidã§åç»åç
åç»åçã«åææ¦ãã¾ããã
ãã£ããã¯å
¬å¼éçºè
ã³ãã¥ããã£ãã¼ã
ã¨çºãã¦ããã¨ãã®ãã¨ã§ãã
http://groups.google.com/group/android-developers
ããè¦ããä¸çªä¸ã«ãã¡ã¤ã«ã®ãã¦ã³ãã¼ããããã§ã¯ãªãã§ãããããããã¡ã¤ã«åãMediaPlayerTestãããã«ãã®å°ãä¸ã«ã¯Pagesãªããã®ããããMedia Sample Appsãªãè¨è¿°ã
http://groups.google.com/group/android-developers/web/media-sample-apps
èªãã§ã¿ããGoogleã®ä¸ã®äººã§ããMeghaãããä¸æã«ãµã³ãã«ã¢ããªããããªã¨ããã§å ¬éãã¦ããã®ã§ãããå ¬å¼ã¯ãã£ã±ãèªã¾ãªãããã¡ã ãªããã§ãBlogã§ãç´¹ä»ãã¦ã»ããã£ããªãã¨ãè²ã æãã¤ã¤æ©éãã¦ã³ãã¼ããã¾ããã
ã¢ããªã¯å
¨é¨ã§3ã¤ããã¾ããMediaPlayerTest, MediaRecorder, VideoViewDemoã§ãã
æå¾ã®ãè¦ã¦ã¾ãã²ã£ããè¿ã£ãã®ã§ãããVideoViewãªãã¦ãã£ããã§ããã
ããã¥ã¡ã³ãã®List of views, View Galleryã«ãªãã£ããããªããããã¨ãMediaPlayerã®ããã¥ã¡ã³ãã«ãªã³ã¯ããã¹ãã§ãããã¨ãæã£ãã®ã§ããandroid.widgetã®ããã±ã¼ã¸ã«ã¯ããã¥ã¡ã³ãããã£ããããã¾ãããããããã
ãããã¸ããã¾ã βçæ
ã®æ¥½ãã¿ã§ããã
VideoViewDemoã®ã³ã¼ããèªãã¨ãããã¾ããåç»åçã®ã³ã¼ãã¯ç®è¶è¦è¶ç°¡åã§ãã
ããæ°è¡ã§ããMediaControlerãåããandroid.widgetã«ããããã»ãã®æ°è¡ã§åãã¾ãã
ããã¾ãç°¡åãªã®ã§å
¨é¨ã³ã¼ãè¼ã£ãã¦ãã¾ãã¾ãããã
ãªããonCompletionã¯åããã©ããèªåãä»ãå ããã®ãã®ã§ãã
public class VideoViewDemo extends Activity implements OnCompletionListener { /** Called when the activity is first created. */ private String path = "/tmp/smile.mp4"; private VideoView mVideoView; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); getWindow().setFormat(PixelFormat.TRANSLUCENT); setContentView(R.layout.videoview); mVideoView = (VideoView) findViewById(R.id.surface_view); mVideoView.setVideoPath(path); mVideoView.setMediaController(new MediaController(this)); mVideoView.setOnCompletionListener(this); mVideoView.requestFocus(); } @Override public void onCompletion(MediaPlayer mp) { mp.seekTo(0); mp.start(); } }
ããã°ã©ã ã¯ã覧ã®ããã«åç»ãã¡ã¤ã«ã®ãã¹ãè¨å®ãã¦ãã¡ãã£ã¢ã³ã³ããã¼ã©ãè¨å®ãã¦ãå®äºãªã¹ãã¼ãè¨å®ãã¦ãã©ã¼ã«ã¹ãã¦ãã ãã§ãã
onCompletionã«ã¦å·»ãæ»ããåã³ååçãè¡ã£ã¦ç¡éã«ã«ã¼ãããã¦ã¾ãã
MediaControllerã¯æ£ç´ããªãåºæ¥ãæªãã§ãããã¿ã³ãæ¼ãã¦ãåå¿ãæªãããä¸æåæ¢ã¨åçã®è¡¨ç¤ºãåãæ¿ãããªãããå·»ãæ»ãæ©éãã¯ç´°ããªæä½ãã§ããªãããã¤ã³ã¸ã±ã¼ã¿ã¯ã¿ããã«ã¦æä½ã§ãã¾ãããã§ããããã¯å ¨ã¦Î²ã®ããã§ããããã次ã¯ãã£ã¨ãããªãã§ãããã
åç»ã¯ä»å±ãã¦ããã®ã3gpã§ãããiPod第5ä¸ä»£åãã¯åçã§ããããã§ãã
ä¸ã®ç»é¢ã¯ææã§æè¿ã®ãæ°ã«å
¥ãããã¦ã³ãã¼ããã¦ä»¥ä¸ã®ãµã¤ãã®ãã¼ã«ã«ã¦mp4ã«å¤æãã¾ããã
http://www.smallvideosoft.com/
ã¾ãåç»å½¢å¼ã®å¤æã«é¢ãã¦ã¯ä»¥ä¸ã®ãµã¤ããåèã«ããã¦ããã ãã¾ãããã¨ã¦ãåèã«ãªãã¾ããããããã¨ããããã¾ããã
http://www.vid-dl.net/wp/2007/07/flv-converter-tools/
http://www.linkclub.or.jp/~ma3ki/webutil/movies/youtube/dogahenkan-kun.html
åç»ã¯é¢åãããã®ã§/tmpã«adb pushã§æ¾ãè¾¼ã¿ã¾ããã/tmpã¯emulatorãåèµ·åããã¨ä¸èº«ãæ¶ãã¾ãã®ã§æ³¨æãã¦ãã ããã
Google I/Oã«ã¦æ°ããAndroidãç´¹ä»ããã件ã«ã¤ãã¦
ãã¦ã³ãã¼ãã¯ã¾ã ãããã¦ã³ãã¼ãã¯ã