php-windows Digest 11 May 2013 21:50:25 -0000 Issue 4099
Topics (messages 31006 through 31007):
Podcast/audio playback tweaking
31006 by: Jacob Kruger
PHP 5.3/5.4 and windows scripting host, WSF, ActiveScript question
31007 by: David Lykke Søndergaard
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Have a look at this sort of test page:
http://www.blindza.co.za/soundEffects_class/bookmarks.php
All of the playback control buttons have accessKey attributes assigned to them
- alt + P for play, alt + U for pause, alt + B for back, alt + O for forward,
and alt + R for restart.
Anyway, what it comes down to is, this makes use of either an embedded flash
object to handle playback of an MP3 file, or if the browser supports/handles
it, it will use HTML5 audio, and the back and forward buttons are currently set
to let you jump backward and forwards by 5 seconds - but, that's just a test
value - while restart will restart playback from the start, but, the main thing
here is that when you pause playback, in the background it sets a browser
cookie with the track position in, and that means, next time you come back to
the page, and start playback, it should in fact start playing from where you
last were.
This is partly since it's always a bit irritating to listen to each and every
podcast embedded in a page from start to finish if you had already listened to
a part of it before, and, like said, could also put together your own list of
time markers, and then let guys navigate to those points if they wanted to skip
other parts of the track, etc., while it's actually still all in one file, but
anyway - not always a good idea.
And, lastly, this is manipulating all of the content embedding/manipulation
using jQuery/javascript client side script, being rendered using PHP server
side scripting, that also means I could sort of hide things like actual sound
clip URL from guys pretty easily by sort of requesting the actual file from a
server-side redirect/stream to the real file, and as part of that process,
double check if they were trying to download it directly, or whether it was
actually the script/page asking for it to be passed on.
Anyway, am passing this on in case it might be of interest, and if so, can pass
on source code as well, etc.?
If you look at page markup, you'll already be able to see how it's handling the
time markers/jumps.
I could also try clean it up into a bit of a simpler package as well - that's
partly what have already done with the actual sound element code to make it
easier to just make a page handle real-time sound effects easily enough, so I
could also just include this playback/bookmarking functionality into part of
that as well, to make it easier to implement, with minimal actual server-side
coding required then?
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
--- End Message ---
--- Begin Message ---
Hey,
I have been trying to get PHP to work with Windows Scripting Host and WSF files.
With PHP 5.2.17, I could use PHP5ActiveScript.dll to make the connection and
run this script:
<job id="test">
<script language="PHPScript">
$WScript->Echo("Hello World!");
</script>
<job/>
http://www.php.net/manual/bg/install.windows.activescript.php
I can not, however, get this to work with PHP 5.3 or 5.4.
I have tried on windows 7, Windows XP and a freshly installed Windows XP.
I have tried with the standalone zip file, the installer and WAMP (Some
indicated that this had a working installation of PHP with activescript).
I have copied different versions of the PHP5activeScript.dll to the PHP folder,
but when I try to run regsvr32.exe php5activescript.dll, I always get the
error: "LoadLibrary("php5activescript.php") failed - The specified procedure
could not be found." (Unless I copy it to 5.2.17, were it registers successfull)
Php5activescript is desupported according to php.net, but I can not find an
replacement way of connection PHP to windows Script Host ?
Hope somebody can help with this.
Cross posted to PHP-install - sorry to the people who are on both lists.
--David S.
--- End Message ---