GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Anyone know if it is possible to get the state of an embed WMV player? (https://gfy.com/showthread.php?t=1025908)

V_RocKs 06-09-2011 09:01 AM

Anyone know if it is possible to get the state of an embed WMV player?
 
I am trying to get the state (playing,paused,stopped) from an embedded media player for WMV. Anyone know if you can capture that using Javascript?

munki 06-09-2011 09:03 AM

what fucking year is it? Did i get trapped in some backwards time warp again?

And I would think you could pull states from the DOM, but that would depend on how the embed was laid in place.

SmokeyTheBear 06-09-2011 09:14 AM

easy answer, yes you can

SmokeyTheBear 06-09-2011 09:19 AM

0 Undefined Windows Media Player is in an undefined state.
1 Stopped Playback of the current media item is stopped.
2 Paused Playback of the current media item is paused. When a media item is paused, resuming playback begins from the same location.
3 Playing The current media item is playing.
4 ScanForward The current media item is fast forwarding.
5 ScanReverse The current media item is fast rewinding.
6 Buffering The current media item is getting additional data from the server.
7 Waiting Connection is established, but the server is not sending data. Waiting for session to begin.
8 MediaEnded Media item has completed playback.
9 Transitioning Preparing new media item.
10 Ready Ready to begin playing.
11 Reconnecting Reconnecting to stream.

use document.player.playState to retrieve current value

CurrentlySober 06-09-2011 09:55 AM

Fiddy ways to get the state of an embed WMV player !!! :thumbsup:thumbsup:thumbsup

V_RocKs 06-09-2011 09:57 AM

Thanks, Smokey... Got it working


All times are GMT -7. The time now is 10:37 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123