Provide facilities to automatically enable RedGIFs audio in embedded iframes, and for communication regarding audio controls between the the hosting site and the iframe.
Це версії цього скрипту, де код був змінений. Показати всі версії.
Added play and pause functionalityMade commands use switch statement like an adult
Renamed to RedGIFs Embed EnhancerImplemented several addtional functions (querystring loop and link, post-commands loopOn, loopOff, linkOn, and linkOff)Added a way to communicate to the parent context that this script is in useAdded a way to signal end of video to the parent context
Improved the logic for the soundOff and soundOn postMessage commands; before, if it received an instruction to turn off sound before the iframe finished loading when the query string turned sound on, the command would be ignored. Now it doesn't do that.
soundOff
soundOn
postMessage
Fixed a null that should have been an undefined causing SOUND_DEFAULT to break (such an amateur)
null
undefined
SOUND_DEFAULT
Documentation change only.Described the setup this was made to work with, and one on which it is known broken.
Expanded options for query string; added explicit no-sound options; implemented and documented defaulting behavior (defaults to sound off) if no explicit sound option was given.