четверг, 21 февраля 2013 г., 23:34:13 UTC+2 пользователь petter написал: > > I tried the following snippet to generate an embedded video: > > (defun init-user-session (comp) > (setf (cl-who:html-mode) :html5) > (setf (composite-widgets comp) > (make-widget > (lambda (&rest args) > (declare (ignore args)) > (with-html > (:body > (:html > (:body > (:p "video test") > ;; I would expect :controls t to return controls, but it > returns controls='controls' > (:video :width 320 :height 240 :controls nil > (:source :src "/pub/images/video.mp4" :type > "video/mp4") > (:source :src "/pub/images/video.ogg" :type > "video/ogg") > (:source :src "/pub/images/video.webm" :type > "video/webm") > (:object :data "/pub/images/video.webm" :widht 320 > :height 240 > (:embed :src "/pub/images/video.swf" > :widht 320 :height 240))))))))))) > > But it does not work. All I get is a black box. Also, if I right click on > the black box in Chromium I can save the video (webm) which I can play > using mplayer. If I save the generated HTML to a file, remove > "/pub/images/" and put the video files in the same directory I can open up > the file and view the video i Chromium. > Have you seen working example ? Does similar code works on other platforms (under apache or nginx) ? You can put working html example into /pub/ directory and open it in browser. The next step would be to serve this html from weblocks, for example with (write-string "<html ... >" *weblocks-output-stream*)
> > Did anybody else succeed serving video from Weblocks? > > -- You received this message because you are subscribed to the Google Groups "weblocks" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/weblocks?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
