I know, that it is too complex. But. Do you think, that used webaudio unit or other Pascal routines would be able to open live MP3 stream? Or unfortunately no and it would had to be impelemented in some new or existing unit?
I have found webaudio unit inside \pas2js package. But I do not know, if is it possible to use it for this task. And yours pacman game contain useful code to play sound melody but you have even not used webaudio.
Mailing lists / pas2js / 2020-08
live mp3 streams opening question
11 messages · 2 people · –
- MMgr. Janusz Chmiel 6
- MMichael Van Canneyt 5
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Some of Pas2js demo contain reference to webbrowser unit. But even when I have checked latest Pas2js trunk by using svn, there is no webbrowser.pas unit.
This unit contain windowalerd function for example. Thank you very much for The direct download link where to get this unit.
I know, that it is too complex. But. Do you think, that used webaudio unit or other…
Mgr. Janusz Chmiel wrote 7 lines
You can use webaudio for this, but this is far too complicated for simple tasks.
You can simply create an Audio tag, as this is enough for most cases.
Michael.
Some of Pas2js demo contain reference to webbrowser unit. But even when I have checked…
Mgr. Janusz Chmiel wrote 5 lines
? There is no webbrowser unit. I think you have a mistake somewhere:
There is the web unit, and there is the browserconsole unit. There is also the browserapp unit.
Michael.
Yes, browserapp unit is The right which I have wanted to find.
Mgr. Janusz Chmiel wroteYes, browserapp unit is The right which I have wanted to find.
It is distributed in the packages/fcl-base directory.
Michael.
I have analysed various demo apps and I have found out, that if An app uses new Webvidgets.pas unit or if An app uses special approach based on .lfm files which are The part of The project, todays used algorithms of Windows screen readers can not work with such special compiled WEB based app. So by other words, The accessible approach is app, which uses web.pas unit. Even yours graphical game with sound is perfectly accessible, because you are using Web unit.
So my future is more than clear. I can not work with visual form designers, since it uses canvas. Resulting project would not be usable for screen readers users.
Even browserconsole unit produces inaccessible output. It is vešry probably caused by The some issues related to getting info from Webbrowser object.
So really. EWeb unit is my future. So I must copy all its data types and object names for Me to A separate text file buttons, checkboxes, etc. SO I will declare those data types correctly.
I have only one big plea.
How to configure latest stable Lazarus, so it will allow Me to build projects based on Pas2js compiler so resulting file will be .html file and .js file, and I will do not have to add manually The references to The .js script to The .html file?
Or it is not possible for now?
Sighted majority will very appreciate The complex work on webwidgets and visual designer for Lazarus.
But I must stay with my feets put on The ground.
I will do my best to learn web.pas unit procedures and functions. I will have The last plea on a next thread.
Does somebody of use have .cmd or .bat file which can be used to build Pas2js for windows from The latest trunk branch?
Compiler is so outstanding project that it is very good to test its latest development version. When I have tried resulting WEB apps in action, I have definitely decided to work with this app because WEB apps are The future. My biggest joy is being caused by The fact, that resulting .pas code do not have to use functions or procedures for GUi element creation with number position values.
Many todays projects and programming languages are based on visual designers. Those designers are perfect for The sighted majority of developers so I can not degradate The work of sighted developers on them, because it is really perfect for sighted programmers, who can see designed form on The fly.
But for Me as A visually impaired man, using web.pas unit or Webcrt unit is The best possible approach. Sure, I must hardly learn some info to program from memory, but resulting code will work.
Thank you very much and I will be doing my best to write less messages to not overload other participants of this mailing list so much.
I have analysed various demo apps and I have found out, that if An app uses new…
Mgr. Janusz Chmiel wroteI have analysed various demo apps and I have found out, that if An app uses new Webvidgets.pas unit or if An app uses special approach based on .lfm files which are The part of The project, todays used algorithms of Windows screen readers can not work with such special compiled WEB based app.
webwidgets does not use lfm.
In fact it is a very thin and small layer on top of the web.pas unit.
So I wonder how you came to the conclusion that it is webwidgets that causes this ?
So by other words, The accessible approach is app, which uses web.pas unit. Even yours graphical game with sound is perfectly accessible, because you are using Web unit.
As said: webwidgets is only a small layer on top of web.pas.
So my future is more than clear. I can not work with visual form designers, since it uses canvas. Resulting project would not be usable for screen readers users.
As far as I know, there is only 1 project that uses the canvas (the canvas demo project), none of the other projects uses the canvas.
TMS Web core's FNC products use the canvas heavily, but I take care not to use the canvas...
Even browserconsole unit produces inaccessible output.
I am very surprised to hear this. It produces simple HTML: only DIV tags. No more, no less.
Maybe some aria- attributes must be set for you to be able to access it ? If you can tell me which ones must be added, I will be glad to add them.
I have no experience with accessibility features, so any assistance you can offer is welcome.
Show quoted text 6 lines
Please explain this ?
Show quoted text 5 lines
You need to install the pas2jsdsgn package. You will then get a wizard in the 'Project - New' dialog that creates a HTML file and pascal file.
It is described in the following wiki page:
https://wiki.freepascal.org/lazarus_pas2js_integration
Hopefully this helps you.
Michael.
Does somebody of use have .cmd or .bat file which can be used to build Pas2js for windows…
Mgr. Janusz Chmiel wroteDoes somebody of use have .cmd or .bat file which can be used to build Pas2js for windows from The latest trunk branch?
You must simply execute
make all
on the command-line in the toplevel directory of the pas2js SVN checkout directory.
It is all that is needed to compile pas2js.
If you do not have make (it's installed with fpc/lazarus, so you should have it)
you can do
fpc fpmake.pp
and then
fpmake compile
This is simply what the makefile does for you.
Michael.
webwidgets does not use lfm. In fact it is a very thin and small layer on top of the…
I Am very sorry. You had right. Webwidgets unit can work without .lfm files. And resulting WEB app work with screen reader. Because I have tried test app, run test button have been accessible. So web.pas and webwidgets.pas produces accessible GUI of resulting WEb apps. Console really do not work. I think, that The aim of webbrowserconsole unit is to have output of writeln readable as A normal webpage output, so it is not necessary to use The browser or The development console.
But it is not problem, because professional apps must really use web.pas or webwidgets.pas so I will learn webwidgets unit as you have adviced Me yesterday. I will look at yours demo and if I will find some which uses webwidgets unit I will try to learn thanks to its code.
