Plugin Directory

Changeset 734473


Ignore:
Timestamp:
07/01/2013 03:29:47 AM (13 years ago)
Author:
tkrivickas
Message:

IMPR: Added shortcode parameter to disable autoplay

Location:
live-stream-badger/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • live-stream-badger/trunk/readme.txt

    r726207 r734473  
    82826. chat_height - height of livestream chat (int, default: 400)
    83837. chat - show chat? (boolean, default: false)
     848. autoplay - automatically play embedded content (boolean, default: true)
    8485
    8586== Frequently Asked Questions ==
     
    9394== Changelog ==
    9495
     96= 1.2.3 =
     97* Improvement: Added shortcode parameter to disable autoplay
    9598= 1.2.2 =
    9699* Bugfix: shortcode embed not working
  • live-stream-badger/trunk/shortcode/class-embedded-stream.php

    r726204 r734473  
    1515                                      'chat_width'  => '620',
    1616                                      'chat_height' => '400',
    17                                       'chat'        => FALSE
     17                                      'chat'        => FALSE,
     18                                     
     19                                      'autoplay'    => TRUE
    1820                                 ), $attrs );
    1921
  • live-stream-badger/trunk/view/class-embedded-twitch-view.php

    r726204 r734473  
    1717        $ch        = $args['chat_height'];
    1818        $show_chat = $args['chat'];
     19       
     20        $autoplay  = $args['autoplay'];
    1921
    2022        $html = '';
     
    2729                . '<param name="allowNetworking" value="all" />'
    2830                . '<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" />'
    3032                . '</object></div>';
    3133        }
Note: See TracChangeset for help on using the changeset viewer.