Changeset 734473
- Timestamp:
- 07/01/2013 03:29:47 AM (13 years ago)
- Location:
- live-stream-badger/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
shortcode/class-embedded-stream.php (modified) (1 diff)
-
view/class-embedded-twitch-view.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
live-stream-badger/trunk/readme.txt
r726207 r734473 82 82 6. chat_height - height of livestream chat (int, default: 400) 83 83 7. chat - show chat? (boolean, default: false) 84 8. autoplay - automatically play embedded content (boolean, default: true) 84 85 85 86 == Frequently Asked Questions == … … 93 94 == Changelog == 94 95 96 = 1.2.3 = 97 * Improvement: Added shortcode parameter to disable autoplay 95 98 = 1.2.2 = 96 99 * Bugfix: shortcode embed not working -
live-stream-badger/trunk/shortcode/class-embedded-stream.php
r726204 r734473 15 15 'chat_width' => '620', 16 16 'chat_height' => '400', 17 'chat' => FALSE 17 'chat' => FALSE, 18 19 'autoplay' => TRUE 18 20 ), $attrs ); 19 21 -
live-stream-badger/trunk/view/class-embedded-twitch-view.php
r726204 r734473 17 17 $ch = $args['chat_height']; 18 18 $show_chat = $args['chat']; 19 20 $autoplay = $args['autoplay']; 19 21 20 22 $html = ''; … … 27 29 . '<param name="allowNetworking" value="all" />' 28 30 . '<param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" />' 29 . '<param name="flashvars" value="hostname=www.twitch.tv&channel=' . $stream_summary->channel_name . '&auto_play=true&start_volume=25" />'31 . '<param name="flashvars" value="hostname=www.twitch.tv&channel=' . $stream_summary->channel_name . ($autoplay === TRUE ? '&auto_play=true' : '') . '&start_volume=25" />' 30 32 . '</object></div>'; 31 33 }
Note: See TracChangeset
for help on using the changeset viewer.