Hi Ono,

Is there somewhere we can see your work? We know this needs to be made easier, 
and we're working on it. Thanks for being patient!

On Jul 16, 2010, at 11:57 PM, Ono Keiji <[email protected]> wrote:

> Hi Max,
> 
> I worked this issue with using html tag.
> Thank you so much.
> 
> I made videoplayer for swf and controlled it from dhtml apps. The videoplayer 
> was mounted in dhtml by using html tag. The video source has put from dhtml 
> to swf.Then in called html get the vide source from their query and provide 
> it to the swf of video player apps with using lz.embed.lzapp.callMethod().
> 
> This was tough work to just video to do.:)
> Append it, html tag work stable in dhtml rather than swf.
> 
> Thank you.
> 
> 
> Quoting Max Carlson <[email protected]>:
> 
>> On 7/13/10 10:42 PM, Ono Keiji 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)" />
>> 
>> 
>> I think the issue is, you're loading the player .swf directly rather
>> than from an HTML wrapper page.  If you load it with an HTML wrapper,
>> you can use html.callJavascript() to access the video player loaded in
>> the page.  Let me know how that goes!
>> 
>>> 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
> ------------------------------------------
> 

Reply via email to