 (defn layout [activity view]
   (make-ui activity
            [:linear-layout {:background-color Color/BLACK
+                            :layout-width :fill
+                            :layout-height :fill
                             :gravity Gravity/CENTER}
             view]))
 

                               (doto surface
                                 (.setLayoutParams params)
                                 (.requestLayout)))
                           (when to
                             (server/stream-video from to width height)))))]
        (doto (.getHolder surface)
          (.setType SurfaceHolder/SURFACE_TYPE_PUSH_BUFFERS)

    mjpeg-view))

(defn stream-view [^Context activity instruction]
  (create-mjpeg-view activity
                     #_"http://webcam1.lpl.org/axis-cgi/mjpg/video.cgi"
                     (get instruction :from)
                     (get instruction :width)
                     (get instruction :height)))


(defn new-camera-streamer [^StreamCameraDelegate delegate
