I looked into writing scripts in python, to rewrite the little arexx script previously made, in python format, and add some enhancements also. If you want to give it a try, you can download it >here<. It contains 2 py files (on is used for url recognition), and a drawer with small pngs pictures to display in the notification server. Extract its content and copy the 2 scripts and the "icones" drawer in AIOStreams root one. Set the context menu of your browser to call the script as: Python {AIOStreams path}/AIOS_Browser_extension.py %l
I also noticed during testing that skaitv script didn't have -q quality arguments, that make my script to fail, while different qualities are listed in the vwq script.
So I commented out the lines with the requester and added another condition before launching the script without the -q argument:
elif website == 'skaitv':
vqualitylist = ' | '.join(str(n) for n in vqw.skaiVQW)
# response = asl.MessageBox("Quality choice", "Please select a video quality: ", vqualitylist)
# vquality = str(vqw.skaiVQW[response-1])
i tried and it works but i can't bind AmigaAMP to the stream. Which aiostreams file is the file to be configured for AmigaAMP ? . Thanks for any suggestions.
Edited by white on 2021/3/29 13:25:16 Edited by white on 2021/3/29 13:25:54
currently aiostreams can work with morphos or rather python-ssl exist I was curious to see how videos could work. thanks and sorry again for the OT question
@walkero I think you can answer this more than anyone else. Thanks again for your patience
@white Unfortunately, for MorphOS the available python 2.x doesn't support SSL or it is broken, or it requires weird way to configure it, that I haven't found yet. The problem is that the requests aiostreams does to the twitch api require https and SSL. If that doesn't work, then aiostreams cannot establish a connection.
What I am thinking to do is to use my own API server at aiostreams.amiga-projects.net, which will support plain http requests, but it will request the data from twitch using SSL.
Since those requests do not include any personal information, the risk for the end user is close to zero. The only thing that might be shared is the public IP. I will make it as an option in aiostreams cfg.py, for the security maniacs.
This way will overcome all the issues the scripts have with python ssl support, both on OS4 and MorphOS.
Now, if MorphOS new ffplay port supports SSL, then people will be able to watch the videos, otherwise I am afraid that this will not work.
Hope I answered your question. If not, feel free to tell me so.
@walkero Thanks for the reply, and I still apologize for the OT.
I just did a test to see if mplayer was able to play a very light .mp4 video. but even if the mplayer timer goes on the screen remains black. I probably can't play videos with qemu.
Thanks again and sorry for the OT it was just a simple curiosity for ( morphos - wayfarer - aio ) I guess youtube videos don't show for the same reason.
@beworld That's awesome. For twitch usually streams support smaller resolutions, i.e. 320p or 600p, but not always. It depends if the streamer selected the necessary configs. Some of them stream only on 1080p.
Do you plan to add composite to make it work faster?
@white YouTube is a pain. But I believe that on MorphOS is exactly the same reason.
I used ffplay (ffmpeg) for morphos and it works perfectly. Should i now be able to configure "AIO"? Are the settings the same as version 4.1? Thanks and sorry again for the OT and a simple curiosity towards morphos.
i tried to use aiostreams on amigaos 4 but when i try to run any scripts from shell it says that the file is not executable.. i have installed all the required file and if I type python from the shell it enters into Python.. What am I doing wrong?
you can't run script directly from shell without saying it which language it is :D Try > python <name of the script you want to use .py> <args (each script use most of the same arguments, see the readme)>