Ticket #893 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

jQuery API selectors do not work

Reported by: jeroen Owned by: zach
Priority: Milestone: HTML5 beta
Component: Keywords:
Cc: Forum thread:

Description

This fails:

<video height="270" id="player1" width="480" poster="test/files/bunny.jpg" src="test/files/bunny.mp4">Bla bla</video>

<script type="text/javascript">
	var player = $('#player1').jwplayer({flashplayer:'assets/player.swf',skin:'assets/five/five.xml'});
</script>

<p onclick="player.play()">play me!</p>

This also fails:

<video height="270" id="player1" width="480" poster="test/files/bunny.jpg" src="test/files/bunny.mp4">Bla bla</video>

<script type="text/javascript">
	$('#player1').jwplayer({flashplayer:'assets/player.swf',skin:'assets/five/five.xml'});
</script>

<p onclick="$.jwplayer('#player1').play()">play me!</p>

This works:

<video height="270" id="player1" width="480" poster="test/files/bunny.jpg" src="test/files/bunny.mp4">Bla bla</video>

<script type="text/javascript">
	$('#player1').jwplayer({flashplayer:'assets/player.swf',skin:'assets/five/five.xml'});
</script>

<p onclick="$.jwplayer().play()">play me!</p>

Case 1 and 2 did work a while ago, so this seems like a regression issue.

Change History

comment:1 Changed 3 years ago by zach

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [1020]

Note: See TracTickets for help on using tickets.