Page 1 of 1

JW WMV Player BBCode

Posted: 06 Mar 2010, 17:26
by BBCode Bot
JW WMV Player BBCode

Author: torinogt
Description: Description: The JW WMV Player BBCode is a simple, flexible player for displaying Windows Media video, audio and (live) streams on your website. While not yet as widely installed nor feature-rich as Flash, Silverlight is excellent for publishers who have content encoded in WMV or WMA. The player features a similar list of variables as the JW FLV Player, with the exception of playlist support. The 1.1 version also introduces a javascript API. dl link. installation instructions, etc are included in the dl link.
Requires microsoft silverlight to be installed on your computer. if not, it will provide a dl link to install.
Further info: http://www.longtailvideo.com/players/jw-wmv-player/
Attached file:
wmvplayer.zip
(364.29 KiB) Downloaded 1735 times
Download, unzip and upload the included files to your forum.

BBCode:

Code: Select all

[jwmv]{URL}[/jwmv]
HTML:

Code: Select all

<div name="{URL}" id="{URL}"></div>
      <script type='text/javascript' src="images/wmvplayer/silverlight.js"></script>
   <script type='text/javascript' src="images/wmvplayer/wmvplayer.js"></script>
       <script type="text/javascript">
          var cnt = document.getElementById("{URL}");
          var src = 'images/wmvplayer/wmvplayer.xaml';
          var cfg = {
             file:'{URL}',
             height:'320',
             width:'440'
          };
          var ply = new jeroenwijering.Player(cnt,src,cfg);
       </script>
Helpline:

Code: Select all

JW WMV player: [jwmv]url[jwmv]
Example:

Code: Select all

[jwmv]video1,http://www.aviation.ru/www.rusarm.ru/video/T-90S_1.wmv[/jwmv]
Demo:
[jwmv]http://www.aviation.ru/www.rusarm.ru/video/T-90S_1.wmv[/jwmv]

Re: JW WMV Player BBCode

Posted: 11 Jul 2010, 06:49
by Neverlands
Hello,
I've tried this BBcode but it is only working in some cases.
In the preview I can see the player but no video is shown.
In the viewtopic there only appears [video]theURL[/video] as plain text.

This is my BBCode:

Code: Select all

	<div name="{URL}" id="{URL}"></div>
	<script type='text/javascript' src="wmvplayer/silverlight.js"></script>
	<script type='text/javascript' src="wmvplayer/wmvplayer.js"></script>
	<script type="text/javascript">
		var cnt = document.getElementById("{URL}");
		var src = 'wmvplayer/wmvplayer.xaml';
		var cfg = {
			file:'{URL}',
			image:'jwplayer/jwlogo.png',
			height:'340',
			width:'560',
			windowless:'true',
			showstop:'true',
			bufferlength:'5',
			overstretch:'fill'
		};
		var ply = new jeroenwijering.Player(cnt,src,cfg);
	</script>
This is the error message I get from Internet Explorer:

Code: Select all

Details zum Fehler auf der Webseite

Meldung: 2203 Ein Fehler ist aufgetreten.
Zeile: 663
Zeichen: 2
Code: 2202
URI: http://www.circula-orionis.net/wmvplayer/wmvplayer.js


Meldung: 'this.model' ist Null oder kein Objekt
Zeile: 216
Zeichen: 4
Code: 0
URI: http://www.circula-orionis.net/wmvplayer/wmvplayer.js
Any advices? Does it have something to do with the ID?

The Neverlands

Re: JW WMV Player BBCode

Posted: 11 Jul 2010, 07:25
by Stoker
Can you please link to a wmv video file that you cant play?
What if you use the exact same bbcode as here?

Re: JW WMV Player BBCode

Posted: 11 Jul 2010, 07:42
by Neverlands
Hello I just found a mistake in my code:

overstretch:'fill' should be overstretch:'fit'.

So there's is no more error from the script.

One that works:
http://www.circula-orionis.net/marion/spiritmaster.wmv

One that only works in the prewiew (post.php) but not on the viewtopic.php:
http://www.circula-orionis.net/marion/templar.wmv

Re: JW WMV Player BBCode

Posted: 11 Jul 2010, 07:49
by Neverlands
This is strange,

I just put the two videos in a new posting and now the templar video is shown double.

Maybe it is not possible to put more than one video in one posting?

Re: JW WMV Player BBCode

Posted: 11 Jul 2010, 09:21
by Stoker
Yes, that is because it uses an ID in the div.
Maybe you can try this one: viewtopic.php?f=3&t=267

Re: JW WMV Player BBCode

Posted: 11 Jul 2010, 10:03
by Neverlands
Thanks for the reply.
The wmvplayer is now working so far :)