Allow setting of width with the live stream helper
This commit is contained in:
parent
4265e8b45f
commit
e4ccd359cd
|
@ -2,8 +2,8 @@
|
||||||
App::uses('AppHelper', 'View/Helper');
|
App::uses('AppHelper', 'View/Helper');
|
||||||
|
|
||||||
class LiveStreamHelper extends AppHelper {
|
class LiveStreamHelper extends AppHelper {
|
||||||
public function makeLiveStream($name, $src, $id) {
|
public function makeLiveStream($name, $src, $id, $width) {
|
||||||
$liveStream = "<img id=\"liveStream_$id\" alt=\"Live Stream of $name\" src=\"$src&monitor=$id\">";
|
$liveStream = "<img id=\"liveStream_$id\" alt=\"Live Stream of $name\" src=\"$src&monitor=$id\" width=\"$width\">";
|
||||||
return $liveStream;
|
return $liveStream;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue