Video playback, on ended help

I am using dmx-html="" quite heavily for something I need to do, and need to find a way to make dmx-on:ended="" still work within.

I know this code is going to be strange and difficult to follow, but it all works, except the second to last line where I use dmx-on:ended="" to try move the video position to 6 seconds when it completes.

I think the issue is that i need to enclose the time in single quotes, and that breaks things, I have tried escaping the single quote, using ' as well as $lsquo;, &rsquo anyone got any ideas here.

<div dmx-bind:class="ppcc_parent_block_class" dmx-bind:style="ppcc_parent_block_style" dmx-repeat:db_repeat_self_columns_internal="db_repeat_columns[$index].query_primary_page_content_c" dmx-html="
ppcc_type_tag == 'img'
? '<'+ppcc_type_tag+' class=&quot;'+ppcc_block_class+'&quot; style=&quot;'+ppcc_block_style+'&quot; data-src=&quot;'+(browser1.viewport.width < 768 && ppcc_img_base_width == 1920 && (ppcc_img_base_height == 450 || ppcc_img_base_height == 760) ? ppcc_img_src.replace('.jpg','-lb.jpg') : ppcc_img_src)+'&quot; alt=&quot;'+ppcc_alt_tag.default(ppcc_img_src.split('/').last().replace('-',' ').replace('.jpg',''))+'&quot; width=&quot;'+ppcc_img_base_width+'&quot; height=&quot;'+ppcc_img_base_height+'&quot; />'
                        
: ppcc_type_tag == 'a'
? '<'+ppcc_type_tag+' class=&quot;'+ppcc_block_class+'&quot; style=&quot;'+ppcc_block_style+'&quot; href=&quot;'+ppcc_link_url+'&quot; title=&quot;'+ppcc_link_title.default(ppcc_content)+'&quot; rel=&quot;'+ppcc_link_rel+'&quot; target=&quot;'+ppcc_link_target+'&quot;>'+ppcc_content+'</'+ppcc_type_tag+'>'
                        
: ppcc_type_tag == 'swiper'
? '<a class=&quot;'+ppcc_block_class+'&quot; style=&quot;'+ppcc_block_style+'&quot; href=&quot;javascript:void(0);&quot; title=&quot;'+ppcc_link_title.default(ppcc_content)+'&quot;>'+ppcc_content+'</a>'

: ppcc_type_tag == 'video'
? '<video class=&quot;'+ppcc_block_class+'&quot; style=&quot;'+ppcc_block_style+'&quot; src=&quot;'+ppcc_img_src+'&quot; is=&quot;dmx-video&quot; id=&quot;video'+$index+'&quot; controls=&quot;true&quot; muted=&quot;true&quot; poster=&quot;'+ppcc_img_src.replace('.mp4','.jpg')+'&quot; dmx-on:ended=&quot;video'+$index+'.position(&lsqou;0:06&rsquo;)&quot;></video>'

: '<'+ppcc_type_tag+' class=&quot;'+ppcc_block_class+'&quot; style=&quot;'+ppcc_block_style+'&quot;>'+ppcc_content+'</'+ppcc_type_tag+'>'" dmx-class:dynamic-circ="ppcc_link_url == NULL ? '' : ppcc_ppca_block_name.endsWith('-bottom') ? content.db_repeat_containers.items[(ppca_block_order-2)].cond_swiper.the_tabor_group_swiper.index == ppcc_link_url : content.db_repeat_containers.items[ppca_block_order].cond_swiper.the_tabor_group_swiper.index == ppcc_link_url" dmx-on:click="ppcc_link_url == NULL ? '' : ppcc_ppca_block_name.endsWith('-bottom') ? content.db_repeat_containers.items[(ppca_block_order-2)].cond_swiper.the_tabor_group_swiper.slideTo(ppcc_link_url) : content.db_repeat_containers.items[ppca_block_order].cond_swiper.the_tabor_group_swiper.slideTo(ppcc_link_url)" dmx-on:mouseover="var_swiper_first_load.setValue(2)"></div>
Community Page
Last updated: