简体   繁体   English

将JW Player嵌入到Wordpress中不接受hight

[英]Embedding jw player to wordpress does not accepting hight

I have embedded JWPlayer through a WordPress plugin installation and created a custom player for it. 我已经通过WordPress插件安装嵌入了JWPlayer,并为此创建了一个自定义播放器。 When I apply the player to my page, it ignores height and it displays always in equal dimensions (width / height). 当我将播放器应用于页面时,它将忽略高度,并且始终以相等的尺寸(宽度/高度)显示。

Because of this I uninstalled the plugin, reinstalled it and I even reinstalled WordPress to get rid of the problem, but no hope. 因此,我卸载了该插件,重新安装了它,甚至还重新安装了WordPress以摆脱问题,但没有希望。 Can anyone tell me what the issue may be? 谁能告诉我这个问题可能是什么?

The link for the code is: 该代码的链接是:

http://www.jasdigitalmedia.com/live/ http://www.jasdigitalmedia.com/live/

I'm had the same problem. 我遇到了同样的问题。 It needs to have a special div with the id="jwplayer-1-div" and class="your custom name" and which is empty except nested inside of it is another div called id="jwplayer-1" and it is empty. 它需要有一个带有id =“ jwplayer-1-div”和class =“ your custom name”的特殊div,并且它是空的,但嵌套在其中的是另一个名为id =“ jwplayer-1”的div,并且它是空的。

Now it takes some jwplayer javascript to get it to work, so your best bet is to use shorttag codes to put it all in there for you. 现在,它需要一些jwplayer javascript才能起作用,因此,最好的选择是使用shorttag代码为您放置所有代码。

I used a special function in the loop theme, like this: 我在循环主题中使用了一个特殊功能,如下所示:

echo jwplayer_tag_callback("[jwplayer config='libplayer' file='$movie' image='$preview']"); echo jwplayer_tag_callback(“ [[jwplayer config ='libplayer'file ='$ movie'image ='$ preview']”));

Now it is using my custom player. 现在它正在使用我的自定义播放器。

I'm not quite done, because I don't want to embed it I just want a link. 我还没有完成,因为我不想嵌入它,我只想要一个链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM