www.webdeveloper.com
Results 1 to 4 of 4

Thread: video control that works

  1. #1
    Join Date
    Jul 2012
    Posts
    4

    video control that works

    Hi,

    Please can someone point me in the direction of a method of starting and stopping my embedded ( not youtube ) video from jquery or javascript.

    I tried the <embed> and <video> tags and I've tried various methods to control the playback after googling but none of them work.

    Thanks. ( I used chrome but I'll use whatever works for this thing. )

  2. #2
    Join Date
    Nov 2010
    Posts
    1,089
    can you show the code that you use to actually play the video? that kind of dictates how it can be stopped, paused, etc

    but generally speaking, give your video object an id then apply an onclick to a button or whatever to stop() and play() the video

    can't give you much more without more detail, sorry...

  3. #3
    Join Date
    Jul 2012
    Posts
    4

    here's the code that doesnt work

    $(document).ready(function(){

    $("#videoDiv").append('<video id="videoClip" width="320" height="240" controls="controls"><source src="billy.mp4" type="video/mp4" /><source src="movie.ogg" type="video/ogg" />Your browser does not support the video tag.</video>');

    // click event for makeSRTDivBut button
    $('#makeSRTDivBut').click(function() {

    // try some video control stuff
    $('#videoClip').stop();

    });
    });

  4. #4
    Join Date
    Jul 2012
    Posts
    4
    I'm gonna try this thing in VB6. I think it's actually more appropriate anyway. Am surprised video is so flaky on the web though.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles