/    Sign up×
Community /Pin to ProfileBookmark

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. )

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@xelawhoJul 22.2012 — 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...
Copy linkTweet thisAlerts:
@marcusHereauthorJul 24.2012 — $(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();


});

});
Copy linkTweet thisAlerts:
@marcusHereauthorJul 24.2012 — 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.
×

Success!

Help @marcusHere spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...