How can I stop a video with Javascript in Youtube?

前端 未结 3 1534
离开以前
离开以前 2020-11-29 03:52

Situation: here, where I pressed some video.

Problem: I try to stop the video by Javascript in the console of Firebug:

<         


        
3条回答
  •  天命终不由人
    2020-11-29 03:58

    The following works well, tested on wamp server. Just replace the 11-digit ID in the following line with that of the video you want to play.

    http://www.youtube.com/v/***LpbzbyGjJGE***?enablejsapi=1&version=3&playerapiid=ytplayer
    

    Good luck.

     
    
    
    
    Untitled Document
    
    
    
    
    Pause
    Play
    
    
    
    

提交回复
热议问题