<h1 class="page-title"><a class="back" href="{!! url('streams') !!}" title="{{ trans('app.back') }}">{!! HTML::fontIcon('chevron-left') !!}</a> {{ $stream->title }}</h1>

<div class="stream-player">
    @section('streams-stream-twitch')
        @if ($stream->provider == 'twitch')
            <iframe src="https://player.twitch.tv/?channel={{ $stream->permanent_id }}" frameborder="0" allowfullscreen="true" scrolling="no"></iframe>

            <a href="https://www.twitch.tv/{{ $stream->permanent_id }}?tt_medium=live_embed&amp;tt_content=text_link">Watch live video from {{ $stream->title }} on www.twitch.tv</a>

            <script>
                $(document).ready(function()
                {
                    var $iframe = $('.page iframe');
                    $iframe.height($iframe.width() * 0.6098); // Auto-set height of the iframe
                });
            </script>
        @endif
    @show
    @section('streams-stream-smashcast')
        @if ($stream->provider == 'smashcast')
            <iframe src="https://www.smashcast.tv/#!/embed/{{ $stream->permanent_id }}" allowfullscreen></iframe>

            <a href="https://www.smashcast.tv/{{ $stream->permanent_id }}">Watch live video from {{ $stream->title }} on www.smashcast.tv</a>

            <script>
                $(document).ready(function()
                {
                    var $iframe = $('.page iframe');
                    $iframe.height($iframe.width() * 0.5625); // Auto-set height of the iframe
                });
            </script>
        @endif
    @show
</div>

{!! Comments::show('streams', $stream->id) !!}
