[vlc-commits] Add a 3D transform to the test file

Ludovic Fauvet git at videolan.org
Sat Dec 22 01:28:17 CET 2012


npapi-vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Sat Dec 22 01:25:26 2012 +0100| [d0242028dd5bd988a19488c33a5928644dd81c44] | committer: Ludovic Fauvet

Add a 3D transform to the test file

Only supported by the windowless mode.

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

 share/test/test.html |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/share/test/test.html b/share/test/test.html
index 5c20fc7..722c3da 100644
--- a/share/test/test.html
+++ b/share/test/test.html
@@ -400,6 +400,12 @@ Insert Slider widget
     <input size=4 value="100" id="telxPage" onClick='doTelxPage(document.getElementById("telxPage").value);'>
 </td>
 </tr>
+<tr>
+    <td>
+        <input type=button value="3D transform" onClick='doToggle3dTransform();'>
+        (windowless only)
+    </td>
+</tr>
 </table>
 <SCRIPT language="javascript">
 <!--
@@ -506,6 +512,20 @@ function doToggleTeletext()
     }
 }
 
+function doToggle3dTransform()
+{
+    var vlc = getVLC("vlc");
+    var transform = "rotate3d(1,2,1, 45deg)";
+
+    if( vlc )
+    {
+        if (!vlc.style.transform)
+            vlc.style.transform = transform;
+        else
+            vlc.style.transform = '';
+    }
+}
+
 function doItemCount()
 {
     var vlc = getVLC("vlc");



More information about the vlc-commits mailing list