dever 6 年之前
父节点
当前提交
feaf9c85f2
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      video/lib/Live.php

+ 5 - 0
video/lib/Live.php

@@ -32,6 +32,11 @@ class Live
                 $data['stream_hdl'] = $stream['url_hdl'];
                 $data['stream_pic'] = $stream['url_pic'];
                 $data['url'] = $data['stream_hls'];
+
+                $source_type = Dever::input('source_type');
+                if ($source_type != 'ios' && $source_type != 'android') {
+                    $data['stream_rtmp'] = $data['stream_hdl'];
+                }
             } elseif (isset($data['stream_link']) && $data['stream_link']) {
                 $data['stream'] = $data['stream_link'];
                 $data['stream_rtmp'] = $data['stream_link'];