diff options
author | Ronald Bultje <rbultje@src.gnome.org> | 2005-03-21 22:17:45 +0000 |
---|---|---|
committer | Ronald Bultje <rbultje@src.gnome.org> | 2005-03-21 22:17:45 +0000 |
commit | 82b796f226632459f533480165c55f2ac3e8ce29 (patch) | |
tree | 00e4970d58999b627c0f687352b807f8164f6baa /src/test.html | |
parent | 15c80974549686a906876a015b0b2375d7ac5a82 (diff) |
Implement basic javascriptability support through XPCOM. The sample .html
* configure.in:
* src/Makefile.am:
* src/test.html:
* src/totem-mozilla-plugin.c:
* src/totem-mozilla-plugin.cpp:
* src/totem-mozilla-scriptable.cpp:
* src/totem-mozilla-scriptable.h:
* src/totem_mozilla_scripting.idl:
Implement basic javascriptability support through XPCOM. The
sample .html file has some images which, when clicked, will
cause the plugin to printf() something to stdout.
Diffstat (limited to 'src/test.html')
-rw-r--r-- | src/test.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/test.html b/src/test.html new file mode 100644 index 00000000..d2bb9284 --- /dev/null +++ b/src/test.html @@ -0,0 +1,51 @@ +<html> +<head> +<title>Test</title> +</head> +<body> +<div align="middle"> +<h1>PIMP</h1> +<h3>PIMP Internet Media Player</h3> +<table cellspacing="12" cellpadding="0"> +<tr> + <td colspan="3"> +<embed src="file:///tmp/dmp.mov" + width="384" height="300" controller="false" enablejavascript="true" + bgcolor=#000000 autoplay="true" name="player"/> + </td> +</tr> +<tr> + <td align="middle"> + <img src="file:///usr/share/icons/Bluecurve/48x48/stock/media-play.png" + onClick="javascript:document.player.Play();"/> + </td> + <td align="middle"> + <img src="file:///usr/share/icons/Bluecurve/48x48/stock/media-pause.png" + onClick="javascript:document.player.Stop();"/> + </td> + <td align="middle"> + <img src="file:///usr/share/icons/Bluecurve/48x48/stock/media-stop.png" + onClick="javascript:document.player.Rewind();"/> + </td> +</td> +</table> +<script><!-- + Maybe add in future: + - kiosk mode + + Javascript controls: + Play() -> play + Rewind() -> stop + Stop() -> pause + GetTimeScale() -> get units per second (e.g. milliseconds) + SetTime(int time) / GetTime() -> query/seek (in timescale) + GetVolume() / SetVolume (int vol) -> set/get volume (?) + SetIsLooping(boolean loop) / GetIsLooping() -> get/set loop + GetMute() / SetMute(boolean mute) -> set/get mute + SetTarget(string url) / GetTarget() -> change HREF + SetURL(string url) / GetURL() -> change URL + GetDuration() -> get movie length (in timescale) +--></script> +</div> +</body> +</html> |