| View previous topic :: View next topic |
| Author |
Message |
moco
Joined: 19 Jul 2007 Posts: 2 Location: Paris France
|
Posted: Fri Jul 20, 2007 9:20 am Post subject: Javascript and the activex properties |
|
|
Hello everybody,
First of all many thanks to allow us to use such a good streaming system at no cost.
I'm a new registered user but I've embeded Unreal Media Server in the HTML pages of my personal intranet for now almost three years (version 3.0) in a basic way (no use of sophisticated methods and properties but just start/stop and fullscreen setup).
I've jumped to version 5.0 which works fine and instead of using controls via the flow control bar and the right click I decided to use the relevant methods and properties via javascript and a personal GUI.
I got no problem for methods but at this time I'm not able to make properties working fine, either it is inoperative or the player does not work at all.
Let me show how I try to use the properties for example to get the name the media currently playing:
var nom = "";
var o;
var o = document.getElementById("player");
result = o.get_MediaName(nom);
or
var nom = "";
var pobj = new PlayerObject("player");
pobj.object = document.getElementById("player");
result = pobl.get_MediaName(nom);
I make probably an enormous mystake but after searching a lot internet and the users forum I did not get any information regarding the way to use the activex properties via Javascript.
So if any one of you is able to help it would be great.
Thanks by advance. _________________ Present is already behind you |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Fri Jul 20, 2007 10:59 pm Post subject: |
|
|
Take a look at the SDK package that has sample web pages doing similar things.
Admin |
|
| Back to top |
|
 |
moco
Joined: 19 Jul 2007 Posts: 2 Location: Paris France
|
Posted: Tue Jul 24, 2007 2:50 pm Post subject: |
|
|
Hi,
Many thanks to help me but I spent hours to find and try some samples in the SDK files, but nothing found which works regarding my problem.
I remind you my problem, I want to get the information related to the current playing media (MediaName, TotalTime, ...) using the activex properties from a web page and javascript.
Thanks again. _________________ Present is already behind you |
|
| Back to top |
|
 |
|