JW WMV Player BBCode

Video BBCode Database
BBCodes used for embedding videos
There is no support here! Only Read Access!
Locked
User avatar
BBCode Bot
BBCoder IV
BBCoder IV
Posts: 239
Joined: 04 Mar 2010, 15:04
Location: bbcode table

JW WMV Player BBCode

Post 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 1714 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]
Neverlands
BBCoder I
BBCoder I
Posts: 4
Joined: 11 Jul 2010, 06:45

Re: JW WMV Player BBCode

Post 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
User avatar
Stoker
Site Admin
Site Admin
Posts: 3514
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: JW WMV Player BBCode

Post 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?
Board rules! No PM support
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear
Neverlands
BBCoder I
BBCoder I
Posts: 4
Joined: 11 Jul 2010, 06:45

Re: JW WMV Player BBCode

Post 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
Neverlands
BBCoder I
BBCoder I
Posts: 4
Joined: 11 Jul 2010, 06:45

Re: JW WMV Player BBCode

Post 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?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3514
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: JW WMV Player BBCode

Post 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
Board rules! No PM support
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear
Neverlands
BBCoder I
BBCoder I
Posts: 4
Joined: 11 Jul 2010, 06:45

Re: JW WMV Player BBCode

Post by Neverlands »

Thanks for the reply.
The wmvplayer is now working so far :)
Locked