Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* hide DOS console when launching web browser

* launch 32bits Internet Explorer version instead of 64bits to deal with the inexistent Flash player on this browser.  
* in main menu "help" now leads to https://sites.google.com/site/audiovideocours/

git-svn-id: https://subversion.renater.fr/audiovideocours/trunk/client_and_standalone@959 f5520b42-8414-0410-9ae7-91ee0cd12377
  • Loading branch information...
commit fc9c267a852872b736f0e14ab1f550665d17312b 1 parent 7f3fe31
schnell authored
View
8 Aide_AudioCours_StandAlone.url
@@ -0,0 +1,8 @@
+[InternetShortcut]
+URL=http://sites.google.com/site/audiovideocours/
+IDList=
+IconFile=http://ulpmm-projets.u-strasbg.fr/favicon.ico
+IconIndex=1
+HotKey=0
+[{000214A0-0000-0000-C000-000000000046}]
+Prop3=19,2
View
35 MediaCours.py
@@ -22,7 +22,7 @@
#*******************************************************************************
-__version__="1.20"
+__version__="1.21-1"
## Python import (base Python 2.4)
import sys,os,time,datetime,tarfile,ConfigParser,threading,shutil,gettext,zipfile
@@ -821,11 +821,14 @@ def confirmPublish(folder=''):
print serverAnswer
if publishingForm==False:
if idtosend=="": idtosend="none"
- urlParams="mediapath="+dirNameToPublish+".zip"+"&id="+idtosend
+ #urlParams="mediapath="+dirNameToPublish+".zip"+"&id="+idtosend
+ urlParams="mediapath="+dirNameToPublish+".zip"
def launch():
- command='"c:\program files\internet explorer\iexplore" '+urlserver+'?'+urlParams
- print "commande URL= ", command
- os.system(command)
+ print "params>>"+urlserver+"?"+urlParams
+ useBrowser(urlserver+"?"+urlParams)
+ #command='"c:\program files\internet explorer\iexplore" '+urlserver+'?'+urlParams
+ #print "commande URL= ", command
+ #os.system(command)
start_new_thread(launch,())
#except:
@@ -1117,6 +1120,18 @@ def htmlGen():
shutil.copyfile("thirdparty\\JSFX_ImageZoom.js",workDirectory+"\\thirdparty\\JSFX_ImageZoom.js")
shutil.copyfile("thirdparty\\README.txt",workDirectory+"\\thirdparty\\README.txt")
+def useBrowser(what=""):
+ """ Defining the browser to use for 'what' content"""
+ print "In useBrowser function"
+ if os.path.isfile("c:/program files x86/internet explorer/iexplore.exe") == True:
+ print "useBrowser =","c:/program files x86/internet explorer/iexplore.exe"
+ useBrowser='"c:/program files x86/internet explorer/iexplore.exe"'
+ else:
+ print "useBrowser =","c:/program files/internet explorer/iexplore.exe"
+ useBrowser='"c:/program files/internet explorer/iexplore.exe"'
+ subprocess.Popen(useBrowser+" "+what) # console should be hidden
+ #os.system(useBrowser+" "+what)
+
#################################################################################################################
class SerialHook:
@@ -1428,8 +1443,8 @@ def help(self,evt):
def launch():
print "I'm in launch in help"
try:
- subprocess.Popen([r'C:\Program Files\Internet Explorer\iexplore.exe',os.environ["USERPROFILE"]+"/audiovideocours/Aide_AudioCours_StandAlone.url"])
- #subprocess.Popen([r'C:\Program Files\Internet Explorer\iexplore.exe',pathData+"/Aide_AudioCours_StandAlone.url"])
+ useBrowser(what="http://sites.google.com/site/audiovideocours/")
+ #subprocess.Popen([r'C:\Program Files\Internet Explorer\iexplore.exe',os.environ["USERPROFILE"]+"/audiovideocours/Aide_AudioCours_StandAlone.url"])
except:
print "Couldn't open or find Aide_AudioCours_StandAlone.url"
start_new_thread(launch,())
@@ -1688,10 +1703,8 @@ def readLocalWebPreview():
frameEnd.statusBar.SetStatusText(_("Nothing to read."))
if workDirectory!="":
print "Attempting to read web preview"
- command='"c:\program files\internet explorer\iexplore" localhost/'+dirName+"/recording.html"
- #command=os.startfile("file://"+workDirectory+"/recording.html")
- os.system(command)
-
+ useBrowser("http://localhost/"+dirName+"/recording.html")
+
if previewPlayer=="realplayer":
start_new_thread(readSmilNow,())
else:
View
6 win-installer/installeur.iss
@@ -6,9 +6,9 @@
[Setup]
AppName=audiovideocours
AppId=audiovideocours
-AppVerName=audiovideocours 1.20
-AppVersion=1.20
-AppPublisher=(C) ULP Multimedia 2006-2010
+AppVerName=audiovideocours 1.21
+AppVersion=1.21
+AppPublisher=(C) ULP Multimedia 2006-2011
AppPublisherURL=http://audiovideocours.u-strasbg.fr/
AppSupportURL=http://audiovideocours.u-strasbg.fr/
AppUpdatesURL=http://audiovideocours.u-strasbg.fr/
Please sign in to comment.
Something went wrong with that request. Please try again.