And for an HTML snippet, this might be good: http://camendesign.com/code/video_for_everybody "Video for Everybody is simply a chunk of HTML code that embeds a video into a website using the HTML5 <video> element, falling back to Flash automatically, without the use of JavaScript or browser-sniffing. It therefore works in RSS readers (no JavaScript), on the iPhone / iPad (don’t support Flash)."
On Wed, Jul 14, 2010 at 5:38 PM, Raju Bitter <[email protected]> wrote: > There is an equal number of open videoplayers without skinning which > you could use to playback video in any HTML page or Ajax app. > > Open source HTML5 video player: http://videojs.com/ > http://wiki.github.com/zencoder/video-js/browser-device-compatibility > > JW Player has both an HTML5 and a Flash version: > http://www.longtailvideo.com/support/jw-player/jw-player-for-html5 > http://www.longtailvideo.com/support/jw-player > > Of course I can imagine that Max has some good ideas as well to get it > going just using OpenLaszlo, just not sure how much testing you'd have > to do for the various browsers. > > Good luck! > > Raju > > On Wed, Jul 14, 2010 at 1:23 PM, Ono Keiji <[email protected]> wrote: >> This time i need video player not music player, so your showing site dose >> not match as it, sorry. Adding it, it would play a video that is formatted >> flv and mpg4, so html5 dose not match neither. >> >>> How can something as simple as injecting an HTML snippet into a page >>> be so difficult? How many times did this discussion come up in the >>> past years? >> >> This mean, you are saying it is very easy to do ? >> >> Best >> >> >> Quoting Raju Bitter <[email protected]>: >> >>> How can something as simple as injecting an HTML snippet into a page >>> be so difficult? How many times did this discussion come up in the >>> past years? >>> >>> If you'd make views accessible out of JavaScript that would make >>> things much, much easier as well (I mean JS directly in the page, not >>> within LZX). OpenLaszlo is artificially creating the same barriers >>> between simple JS and the HTML page which we have in Flash. >>> >>> @Ono: Try http://www.schillmania.com/projects/soundmanager2/, it's >>> used by last.fm as well. Supports HTML5 audio playback on iOS, and has >>> a SWF8/SWF9 playback components with 4kb/12kb file size. If you have >>> an HTML5 OpenLaszlo app, it should be the perfect tool for >>> audioplayback. >>> >>> On Wed, Jul 14, 2010 at 7:42 AM, Ono Keiji <[email protected]> wrote: >>>> >>>> Hi Max, >>>> >>>> Thank you for your reply. >>>> In fact, i have tried embed swf into my app according to musicdhtml, as >>>> following.But it did not work like musicdhtml,it was just written the >>>> text >>>> in the view. >>>> My aim is located the swf in the given position into dhtml. >>>> Many thanks for your advices. >>>> >>>> >>>> <attribute name="htmlsnippet" type="string" value="" /> >>>> <handler name="oninit" args="e"> >>>> <![CDATA[ >>>> canvas.htmlsnippet = "lz.embed.swf({url: >>>> 'dum.lzx.swf10.swf?lzt=swf', >>>> width: '100', height: '100', id: 'dumapp'})"; >>>> ]]> >>>> </handler> >>>> >>>> <simplelayout/> >>>> <view name="v2" width="500" height="100"> >>>> <text id="video" width="400" height="100" bgcolor="#cccccc" >>>> resize="true"/> >>>> <!-- >>>> <html id="ht" src="http:dum.lzx.swf10.swf" width="400" >>>> height="100"/> >>>> --> >>>> </view> >>>> <button text="modify text" >>>> onclick="video.sprite.setText(canvas.htmlsnippet)" /> >>>> >>>> >>>> >>>> Quoting Max Carlson <[email protected]>: >>>> >>>>> Thanks for filing the JIRA for the compiler issue! >>>>> >>>>> On 7/13/10 6:48 PM, Ono Keiji wrote: >>>>>> >>>>>> I tried as following after reading wiki of SWF in DHTML. >>>>>> >>>>>> 1. <videoview runtime="swf"/> this property has not implement yet. >>>>> >>>>> We need to add wideo and audio support for HTML5 - see >>>>> http://jira.openlaszlo.org/jira/browse/LPP-9019 Until then, we need to >>>>> embed swf to play video and audio. >>>>> >>>>>> 2. <html ...../> this can show the videoplayer in it, but don't know >>>>>> how >>>>>> to pass a video source from dhtml to swf. >>>>> >>>>> This is a great way to go for now. You can use the >>>>> html.callJavascript() API to send a URL to the HTML embedding the >>>>> player. You can use something like >>>>> html.callJavascript("lz.embed.videoplayer.setCanvasAttribute('videourl', >>>>> 'http://...')") >>>>> >>>>>> give me sample :< >>>>> >>>>> Let me know if you have more questions! >>>>> >>>>>> ono >>>>>> >>>>>> Quoting Ono Keiji <[email protected]>: >>>>>> >>>>>>> I filed this compile error to jira, lpp-9184. >>>>>>> >>>>>>> And return to the issue of <videoview> in dhtml. >>>>>>> Are there any workaround idea ? >>>>>>> >>>>>>> Thank you. >>>>>>> >>>>>>> ono >>>>>>> >>>>>>> Quoting Ono Keiji <[email protected]>: >>>>>>> >>>>>>>> Adding this, in audiokernel.lzx get compile error at swf9 over. >>>>>>>> You can confirm it compile with 'audiokernel.lzx?lzr=swf10'. >>>>>>>> It seems like that compiler dose not allow the canvas size >>>>>>>> zero(width=0/height=0). >>>>>>>> Is there any workaround or i should file it to jira? >>>>>>>> >>>>>>>> ono >>>>>>>> >>>>>>>> Quoting Ono Keiji <[email protected]>: >>>>>>>> >>>>>>>>> Music Player(<view>) was works fine, but i have no idea how to use a >>>>>>>>> video player(<videoview>). >>>>>>>>> The size are zero in the example of 'musicdhtml', it is fine for >>>>>>>>> audio. >>>>>>>>> But video need width/height in it. >>>>>>>>> When i want to set video player in arbitrary position in my dhtml >>>>>>>>> application, >>>>>>>>> how can i write a code ? >>>>>>>>> Could you show me some example, if they are able to do, how to >>>>>>>>> combine >>>>>>>>> videoview and dhtml ? >>>>>>>>> >>>>>>>>> Thank you >>>>>>>>> >>>>>>>>> ono >>>>>>>>> >>>>>>>>> >>>>>>>>> Quoting Ono Keiji <[email protected]>: >>>>>>>>> >>>>>>>>>> Thank you Henry, >>>>>>>>>> I noticed it. :) >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Quoting Henry Minsky <[email protected]>: >>>>>>>>>> >>>>>>>>>>> Well, I don't specifically know what is happening, but whenever >>>>>>>>>>> you have >>>>>>>>>>> something that works in proxied mode, but fails in SOLO mode, you >>>>>>>>>>> should >>>>>>>>>>> always check two things: >>>>>>>>>>> >>>>>>>>>>> 1) That flash permissions (such as a server crossdomain.xml file) >>>>>>>>>>> are >>>>>>>>>>> correct >>>>>>>>>>> >>>>>>>>>>> 2) That the MIME type of the media file is correctly being sent >>>>>>>>>>> from the >>>>>>>>>>> server >>>>>>>>>>> >>>>>>>>>>> On Mon, Jun 28, 2010 at 3:25 AM, Ono Keiji <[email protected]> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi, >>>>>>>>>>>> >>>>>>>>>>>> I am now trying a swf, that is video player, into DHTML >>>>>>>>>>>> application. >>>>>>>>>>>> I found lpp-7818 and musicdhtml example, they works fine in proxy >>>>>>>>>>>> mode, >>>>>>>>>>>> but it dose not >>>>>>>>>>>> work in solo mode. >>>>>>>>>>>> I have tried as following, >>>>>>>>>>>> >>>>>>>>>>>> 1. main.lzx compile to dhtml >>>>>>>>>>>> 2. audiokernel.lzx compile to swf >>>>>>>>>>>> 3. write those in wrapper html as following, >>>>>>>>>>>> lz.embed.swf({url: 'audiokernel.lzx.swf8?lzt=swf8', bgcolor: >>>>>>>>>>>> '#eaeaea', >>>>>>>>>>>> width: '0', >>>>>>>>>>>> height: '0', id: 'audiokernel'}); >>>>>>>>>>>> lz.embed.dhtml({url: >>>>>>>>>>>> 'main.lzx.js?lzt=object&lzr=dhtml&_canvas_debug=false', bgcolor: >>>>>>>>>>>> '#ffffff', width: '100%', height: '150', id: 'lzdhtmlapp'}); >>>>>>>>>>>> >>>>>>>>>>>> I use lps4.7.3, FP10, FF3. >>>>>>>>>>>> >>>>>>>>>>>> Can i handle it in solo mode ? >>>>>>>>>>>> Thanks in advance. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> ------------------------------------------ >>>>>>>>>>>> Ono Keiji >>>>>>>>>>>> [email protected] >>>>>>>>>>>> URL http://www.net8.co.jp >>>>>>>>>>>> ------------------------------------------ >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Henry Minsky >>>>>>>>>>> Software Architect >>>>>>>>>>> [email protected] >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> ------------------------------------------ >>>>>>>>>> Ono Keiji >>>>>>>>>> [email protected] >>>>>>>>>> 1-45-11 Mizue Edogawa Tokyo JP >>>>>>>>>> TEL 03(3676)6599 >>>>>>>>>> URL http://www.net8.co.jp >>>>>>>>>> ------------------------------------------ >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> ------------------------------------------ >>>>>>>>> Ono Keiji >>>>>>>>> [email protected] >>>>>>>>> 1-45-11 Mizue Edogawa Tokyo JP >>>>>>>>> TEL 03(3676)6599 >>>>>>>>> URL http://www.net8.co.jp >>>>>>>>> ------------------------------------------ >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> ------------------------------------------ >>>>>>>> Ono Keiji >>>>>>>> [email protected] >>>>>>>> 1-45-11 Mizue Edogawa Tokyo JP >>>>>>>> TEL 03(3676)6599 >>>>>>>> URL http://www.net8.co.jp >>>>>>>> ------------------------------------------ >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> ------------------------------------------ >>>>>>> Ono Keiji >>>>>>> [email protected] >>>>>>> 1-45-11 Mizue Edogawa Tokyo JP >>>>>>> TEL 03(3676)6599 >>>>>>> URL http://www.net8.co.jp >>>>>>> ------------------------------------------ >>>>>> >>>>>> >>>>>> >>>> >>>> >>>> >>>> -- >>>> ------------------------------------------ >>>> Ono Keiji >>>> [email protected] >>>> 1-45-11 Mizue Edogawa Tokyo JP >>>> TEL 03(3676)6599 >>>> URL http://www.net8.co.jp >>>> ------------------------------------------ >>>> >>>> >>>> >>> >> >> >> >> -- >> ------------------------------------------ >> Ono Keiji >> [email protected] >> 1-45-11 Mizue Edogawa Tokyo JP >> TEL 03(3676)6599 >> URL http://www.net8.co.jp >> ------------------------------------------ >> >> >
