0

I must use tag object type="video/mp4" in my project for hbbtv, and I want detect end of movie in vanilia JS. How can i do it?


pscp files to aws with proxy

Need to pscp java war file to aws. however, we are not able to do as connection needs a proxy and there is no option to pass proxy along with pscp command. we tried explicitly setting http_proxy on the cmd. still, it didn't work. Has anyone found any solution?

4

2 回答 2

0

使用 AVControl 对象时,您必须注册 PlayStateChange 事件并检查 playState 5 (Finished)。

    document.getElementById('objectId').onPlayStateChange = function() {
    if (document.getElementById('objectId').playState == 5) {  // FINISHED }
    };

http://www.oipf.tv/docs/OIPF-T1-R2_Specification-Volume-5-Declarative-Application-Environment-v2_3-2014-01-24.pdf 7.14.1 A/V 控制对象

于 2018-01-11T16:55:36.050 回答
0

document.getElementById('objectId').addEventListener('ended',endCallback,false);

function endCallback(e) {
       //Action
}

于 2017-09-14T09:57:17.637 回答