W3C home > Mailing lists > Public > public-html@w3.org > February 2013

deficiency in javascript api for creating text track cues

From: GIDEON ISAAC <mad.gideon.isaac@hotmail.com>
Date: Wed, 13 Feb 2013 10:32:36 -0500
Message-ID: <SNT135-W5227ABE260661F9F0C48FFD0080@phx.gbl>
To: w3 html5 forum <public-html@w3.org>

I can create code like this, which works:
var cue1 = new TextTrackCue(3.300,13.130, 'a subtitle');
 cue1.id = 'cue1';
 cue1.line = 8
 cue1.position = 15;
 myTextTrack.addCue(cue1);
 However, if I want to use PERCENTAGES, I have a problem.  I can's say cue1.position = '15%'.  The api doesn't allow it.  I think this is an omission.-- Gideon  		 	   		  
Received on Wednesday, 13 February 2013 15:33:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:37 UTC