Hello people,
I'm trying catch <video id="media"> from my project1.html in my project1.pas with
medio1:= TJSHTMLElement(document.getElementById("medio")); but this way not allow to me get properties like paused, ended, duration, currenttime,etc.....so I listed Web.pas unit looking for a TJSHTMLVideoElement or TJSHTMLMediaElement but not found nothing......any help please!
Mailing lists / pas2js / 2019-08
not TJSHTMLMediaElement or TJSHTMLVieoElement?
7 messages · 2 people · –
- PPedro Pablo Oviedo Vera 5
- MMichael Van Canneyt 2
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Pedro Pablo Oviedo Vera wrote 8 lines
Trunk contains this:
web.pas: TJSHTMLMediaElement = Class external name 'HTMLMediaElement' (TJSHTMLElement) web.pas: TJSHTMLAudioElement = Class external name 'HTMLAudioElement' (TJSHTMLMediaElement)
I have used this for the pacman demo.
Michael.
Uhmmmmm.....excuse my ignorance...but I do not how to get trunck pas2js version...sorry
El lun., 12 ago. 2019 a las 13:03, Michael Van Canneyt (<
Show quoted text 29 lines
what must I do?
......take all source files a put it into paquages folder in my pas2js folder?....
El lun., 12 ago. 2019 a las 15:48, Pedro Pablo Oviedo Vera (<
Show quoted text 50 lines
Pedro Pablo Oviedo Vera wrotewhat must I do? ......take all source files a put it into paquages folder in my pas2js folder?....
You can download it here:
https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/rtl/web.pas?view=co&root=pas2js
Just copy it over the existing one.
You can always view all recent files through the web interface of subversion:
https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/?root=pas2js
Michael.
I got it!.....I move on....Thanks!!
El mar., 13 ago. 2019 a las 2:11, Michael Van Canneyt (<
Show quoted text 27 lines
I finished my first successfully exercise from the book "The HTML5,CSS3 and JavaScript Book" programing a web video player....pas2js looks really good...ok next exersice....thenks!
El mar., 13 ago. 2019 a las 11:45, Pedro Pablo Oviedo Vera (<
