You are right... I fixed that and the webpage can play the audio automatically. But I want to play it when I click it. By the way, on my webpage, the area of Windows Media Player is just a blank... I do not know why. But if I right click it, I can see the menu of Windows Media Player.
在 2012年4月4日星期三UTC-4下午5时54分58秒,Joel Goldstick写道: > > On Wed, Apr 4, 2012 at 3:50 PM, Homer <hi...@foxmail.com> wrote: > > I tried to use <object> command in my templates directly, but it seems > it is > > not working... Here is my code: > > {% for item in ShowAudio %} > > > <objectheight="25%"width="25%"classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> > > shouldn't this be: > > <object > height="25%"width="25%"classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> > It looks like you have no space after the object tag before the height > attribute > > > <param name="ClickToPlay" value="1" /> > > <param name="FileName" value="{{ media_url > }}/media/audios/baoxiangui.m4a" > > /> > > </object> > > {% endfor %} > > > > Should I add something else so that it would work? Thanks for your help! > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/django-users/-/YGBeVMertYYJ. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > -- > Joel Goldstick > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/qt2dkX2HFmUJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.