|
@@ -298,30 +298,37 @@
|
|
|
ralateUid: '',
|
|
|
appkey: ''
|
|
|
}
|
|
|
+
|
|
|
$('.topic-video').on('click', '.icon-play',function() {
|
|
|
- new window.Player({
|
|
|
- id: 'videoplayer',
|
|
|
- url: $(this).data('url'),
|
|
|
- playsinline: true,
|
|
|
- autoplay: true,
|
|
|
- width: '100%',
|
|
|
- height: 'auto'
|
|
|
- });
|
|
|
- $('.videoposter').hide()
|
|
|
- $('#videoplayer').show()
|
|
|
+ let that = this;
|
|
|
+ $.getJSON($(this).data('url'), function(res) {
|
|
|
+ new window.Player({
|
|
|
+ id: 'videoplayer',
|
|
|
+ url: res.data.video,
|
|
|
+ playsinline: true,
|
|
|
+ autoplay: true,
|
|
|
+ width: '100%',
|
|
|
+ height: 'auto'
|
|
|
+ });
|
|
|
+ $('.videoposter').hide()
|
|
|
+ $('#videoplayer').show()
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
$('.article-video').on('click', '.icon-play',function() {
|
|
|
- new window.Player({
|
|
|
- id: 'articlevideoplayer',
|
|
|
- url: $(this).data('url'),
|
|
|
- playsinline: true,
|
|
|
- autoplay: true,
|
|
|
- width: '100%',
|
|
|
- height: 'auto'
|
|
|
- });
|
|
|
- $(this).closest('.article-video').find('.videoposter').hide()
|
|
|
- $('#articlevideoplayer').show()
|
|
|
+ let that = this;
|
|
|
+ $.getJSON($(this).data('url'), function(res) {
|
|
|
+ new window.Player({
|
|
|
+ id: 'videoplayer',
|
|
|
+ url: res.data.video,
|
|
|
+ playsinline: true,
|
|
|
+ autoplay: true,
|
|
|
+ width: '100%',
|
|
|
+ height: 'auto'
|
|
|
+ });
|
|
|
+ $(this).closest('.article-video').find('.videoposter').hide()
|
|
|
+ $('#articlevideoplayer').show()
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
var qrcode = new QRCode(document.getElementById("qrcode"), {
|