Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7909279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:20:38+00:00 2026-06-03T12:20:38+00:00

I am opening a YouTube web page using the ‘webbrowser’ module: controller = webbrowser.get()

  • 0

I am opening a YouTube web page using the ‘webbrowser’ module:

controller = webbrowser.get()
controller.open("http://www.youtube.com/watch?v=SMwZsFKIXa8&feature=fvst")

The video begins to play, and I would like my Python application to resume as soon as the video ends or the browser is closed.

Now, I cannot use time.sleep for that, because it will force me to wait until the song is over (the app will not continue if I “fast-forward” the video, or if I simply close the browser).

So I basically need to get some indication from the web page, regarding the status of the video, and another indication in case the web page is suddenly closed.

Can I use the handle I have created using webbrowser.get, in order to do that?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:20:48+00:00Added an answer on June 3, 2026 at 12:20 pm

    You can’t at all. The webbrowser module hands it over to a browser over which it has no control whatsoever.

    You’d need to host your own browser control through something like QtWebkit in PySide or an equivalent in pygtk/wxPython. Then you could interact with it as you would own it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am developing a game.when app starts,video will start to play like this http://www.youtube.com/watch?v=2OeuwYIYC0w
Why is this not opening in a new window? <a href=http://www.authorsden.com/visit/viewwork.asp?id=49784&AuthorID=157940> <img src=authors_den.jpg target=blank
When opening up http://mitchwillfixit.com/mbc/media.php and then tabbing to the clickable pictures on that page,
Im opening a map like this: NSString *urlString = [NSString stringWithFormat:@http://maps.google.com/maps?q=%@,%@, destLat, destLong]; [[UIApplication
Opening a public page from browser works fine. Downloading same page using WebClient throws
I'm opening a new window from javascript using this code window.open('index.htm', 'myWindow', 'width=1020,height=400'); However
I am opening a popup window from javascript using window.open. I want to open
I am using this to prevent the app from opening the youtube app and
I am opening VS2010 solutions using C# and VS2010 automation. I open the solutions
as you know that when you Embed youtube video in your web page, it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.