语言

Menu
Sites
Language
How to redirect from youtube video to my application by clicking hardware back button

Hi,

   I have developed and application in which i retrieved youtube video.once i play the video then it work good.

If i click on video right corner then it redirect to youtube website.

How can i return back to my application when i click the hardware back button.

 

 

Thanks and regards

Mohit Kumar

 

 

响应

5 回复
daniel kim

Hi,

I would suggest you to check a youtube option of iframe. it seems that option could make a lauch youtube application. In such case  there is no way to return to your application, I think.

Regards

mohit kumar

Dear deniel kim,

                       Is there any way when youtube page is open ,then if user click on HARDWARE back button of mobile.After that youtube page has colsed.

As per you told.I have done with that.below

video_url=video_url+"&modestbranding=1&autoplay=1&controls=0&showinfo=0"

 

Please help me

Thanks and regards

Mohit Kumar

daniel kim

Hi,

Once youtube is launched, I think that there is no way to go back to your application by H/W key.

Regards

daniel kim

Hi,

I found that below link has a solution.

   http://www.reelseo.com/remove-youtube-logo/

Regards

Seoghyun Kang

Wow..

 

Daniel's solution is so interesting.

For removing the YouTube logo, we just add the following code.

?modestbranding=1

 

ex) ... src="https://www.youtube.com/embed/VIDEOID?modestbranding=1" ...

 

That's a good tip. :)