1.4.x update!
-
The plugin has been updated to 1.4.0
You can now embed a Twitch stream player using short codes!
To insert a video player without the chatbox, use shortcode [twitch-player channel=”CHANNEL_NAME”]. With the chatbox, use shortcode [twitch-player channel=”CHANNEL_NAME” chat=”true”]. Replace CHANNEL_NAME with the name of a channel you have previously configured in the settings.
You can also embed the chat only using [twitch-chat channel=”CHANNEL_NAME”] or just the status tag with [twitch-status channel=”CHANNEL_NAME”]
For advanced users
You can now use HTML5 data attributes to create content that is dynamically updated by your stream data. Check the example below and the JSON object returned by admin-ajax.php to learn more about the available data.
<span data-twitch-channel="hearthstonefr" data-twitch-data="stream-viewers"></span> people are actually watching this. <span data-twitch-channel="hearthstonefr" data-twitch-data="playingHTML"></span>. <p data-twitch-channel="hearthstonefr" > <img data-twitch-channel="hearthstonefr" data-twitch-attr-channel-logo="src" data-twitch-attr-channel-status="title,alt" /> <span data-twitch-data="stream-game"></span> </p>
- The topic ‘1.4.x update!’ is closed to new replies.