Regarding Webbrowser Module in Python
M Kamran Azam
mkamranazam at hotmail.com
Sat Jul 23 11:14:09 EDT 2005
Hi all,
My query goes like this.
I have two htm files.One is media_try_home.htm and the second one is
media_try.htm.I am attaching these files to my mail so that you guys can
understand the problem.
Now, first simply open the media_try_home.htm and press "PLAY THE FILE"
button.A video clip is opened.(Both the files should be in the same
directory).
Using webbrowser, I can first open the first file like this:
webbrowser.open_new("c:\Myfolder\media_try_home.htm").
But I want to play the second file directly using webbrowser but that
doesn't work when I use the following :
webbrowser.open_new
("file:///c:\media_try.htm?start=60&end=70&location=mms%3A%2F%2Fedrul-develop.softeco.it%2F23%2F2004%2F12%2F23_20041218223000.wmv&submit=PLAY+THE+FILE")
If I simply paste this link in the browser, then it works direclty,
bypassing the first file.
May be it's due to the fact that "file:///" is an ftp?Any ideas or clues
what can I do to play the second file directly?
Thanks in anticipation,
Kamran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050723/338706a4/attachment.htm>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050723/338706a4/attachment-0001.htm>
More information about the Python-list
mailing list