[vlc-devel] commit: update test.html ( Cyril Mathé )

git version control git at videolan.org
Tue May 26 14:32:36 CEST 2009


vlc | branch: master | Cyril Mathé <cmathe at actech-innovation.com> | Mon May 25 10:50:01 2009 +0200| [6c1436c75f013dc42fd5fa8ac57cfd4ba84cf0cb] | committer: Jean-Baptiste Kempf 

update test.html

New features (audio and subtitles) added.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c1436c75f013dc42fd5fa8ac57cfd4ba84cf0cb
---

 projects/activex/test.html |    8 ++++++--
 projects/mozilla/test.html |    8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/projects/activex/test.html b/projects/activex/test.html
index 2f60860..0f29099 100644
--- a/projects/activex/test.html
+++ b/projects/activex/test.html
@@ -196,6 +196,8 @@ Verbosity:
 <INPUT type=button value=" + " onClick='doAudioTrack(1);'>
 <SPAN id="trackTextField" style="text-align:center">--</SPAN>
 <INPUT type=button value=" - " onClick='doAudioTrack(-1);'>
+<INPUT type=button value="current track" onClick='alert(getVLC("vlc").audio.description(vlc.audio.track));'>
+<INPUT type=button value="number of track" onClick='alert(getVLC("vlc").audio.count);'>
 </TD>
 <TD>
 <INPUT type=button value="set slider" onClick='doSetSlider();'>
@@ -207,6 +209,8 @@ Verbosity:
     <INPUT type=button value=" + " onClick='doSubtitle(1);'>
     <SPAN id="spuTextField" style="text-align:center">--</SPAN>
     <INPUT type=button value=" - " onClick='doSubtitle(-1);'>
+    <INPUT type=button value="current subtitle" onClick='alert(getVLC("vlc").subtitle.description(vlc.subtitle.track));'>
+    <INPUT type=button value="number of subtitle" onClick='alert(getVLC("vlc").subtitle.count);'>
 </TD>
 </TR>
 <TR>
@@ -292,8 +296,8 @@ function doSubtitle(value)
     var vlc = getVLC("vlc");
     if( vlc )
     {
-        vlc.video.subtitle = vlc.video.subtitle + value;
-        document.getElementById("spuTextField").innerHTML = vlc.video.subtitle;
+        vlc.subtitle.track = vlc.subtitle.track + value;
+        document.getElementById("spuTextField").innerHTML = vlc.subtitle.track;
     }
 }
 
diff --git a/projects/mozilla/test.html b/projects/mozilla/test.html
index e73ffec..33a425e 100644
--- a/projects/mozilla/test.html
+++ b/projects/mozilla/test.html
@@ -185,6 +185,8 @@ Insert Slider widget
 <INPUT type=button value=" + " onClick='doAudioTrack(1);'>
 <SPAN id="trackTextField" style="text-align:center">--</SPAN>
 <INPUT type=button value=" - " onClick='doAudioTrack(-1);'>
+<INPUT type=button value="current track" onClick='alert(getVLC("vlc").audio.description(vlc.audio.track));'>
+<INPUT type=button value="number of track" onClick='alert(getVLC("vlc").audio.count);'>
 </TD>
 <TD>
 <INPUT type=button value="set slider" onClick='doSetSlider();'>
@@ -196,6 +198,8 @@ Insert Slider widget
     <INPUT type=button value=" + " onClick='doSubtitle(1);'>
     <SPAN id="spuTextField" style="text-align:center">--</SPAN>
     <INPUT type=button value=" - " onClick='doSubtitle(-1);'>
+    <INPUT type=button value="current subtitle" onClick='alert(getVLC("vlc").subtitle.description(vlc.subtitle.track));'>
+    <INPUT type=button value="number of subtitle" onClick='alert(getVLC("vlc").subtitle.count);'>
 </TD>
 </TR>
 <TR>
@@ -271,8 +275,8 @@ function doSubtitle(value)
     var vlc = getVLC("vlc");
     if( vlc )
     {
-        vlc.video.subtitle = vlc.video.subtitle + value;
-        document.getElementById("spuTextField").innerHTML = vlc.video.subtitle;
+        vlc.subtitle.track = vlc.subtitle.track + value;
+        document.getElementById("spuTextField").innerHTML = vlc.subtitle.track;
     }
 }
 




More information about the vlc-devel mailing list