I konw that webview can communicate with external activity, you can use videoview to play your resource. If you do like that, it's easy to close your player :)
Br andy 2011/1/6 YoGenDr@ $iNgH <yogi.ru...@gmail.com> > @ andy > Yes nice solution but i didn't know how to get the instance of already > playing player. > As it was launched by webkit framework or libwebcore. > > > > On Thu, Jan 6, 2011 at 1:35 AM, andy zhao <zxganga...@gmail.com> wrote: > >> Basically, I got two ways to do this: >> 1.you can capture the home key enent or other key enents, and stop the >> video playback. >> 2.in onpause() method, close your player >> >> 2011/1/6 yogi <yogi.ru...@gmail.com> >> >>> Hi All, >>> >>> I just want to know when ever there is a video to play in a >>> webpage(youtube.com) how browser invoke some other app for play the >>> video, because my requirement is while playing the video then user >>> presses the "home key" and again launches the browser. the Player >>> should not be shown aagain. >>> >>> Thanks is advance... >>> Regards >>> Yogi >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-developers@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > > > -- > Yogendra Singh > B-Tech,Computer Science and Engg., > MNNIT,Allahabad > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en