473,624 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pause button does not work!

93 New Member
Hi

This code goes well with play, stop and fullscreen button, the only thing is the pause button is not there. How to make pause button? I try to make pause button but when it streams video, when I click pause, it stop but it work play again when i click at play button.


Please help.

[PHP]<?php
function printInstructio ns() {
?>
<html>
<body style="text-align:center;co lor:#F7EBDE;fon t-family:Trebuche t MS;background-color:#73615A;" >
<h2>
<br/></br>To view movie, user need to make an option on the left area. User can either play the whole movie or play by events.</br></br> Please wait a while before the clips playing.</br>
</h2>
</body>
</html>
<?php
}
if (!isset($_GET['playnow'])){
printInstructio ns();
die();
}
?>

<SCRIPT LANGUAGE="JavaS cript">
function getVLC(name)
{
if (window.documen t[name])
{
if (navigator.appN ame.indexOf("Mi crosoft Internet")==-1)
{
if (document.embed s && document.embeds[name])
return document.embeds[name];
}
return window.document[name];
}
if (navigator.appN ame.indexOf("Mi crosoft Internet")==-1)
{
if (document.embed s && document.embeds[name])
return document.embeds[name];
}
else // if (navigator.appN ame.indexOf("Mi crosoft Internet")!=-1)
{
return document.getEle mentById(name);
}
}

</script>

<html>
<body style="margin:0 ;padding:0;back ground-color:#73615A;" >
<?php
require_once "../vlc.php";
include_once('. ./ez_sql.php');
$movieID = $_GET['movieID'];
$movie = $db->get_row("selec t filmFile from Movie where movieID=$movieI D");
if(isset($_GET['stopTime'])) {
$stopTime = $_GET['stopTime'];
}
else {
$stopTime = 99999999;
}
$filmName = setupShot($movi e->filmFile, $_GET['movieID'], $_GET['startTime'], $stopTime);
if(isset($_GET['eventID'])) {
$eventID = $_GET['eventID'];
}
else {
$eventID = "0";
}
?>

<object classid="clsid: 9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.video lan.org/pub/videolan/vlc/latest/win32/axvlc.cab"
width="460" height="400" events="True" name="vlc">
<param name="Src" value="rtsp://<?php echo $_SERVER['SERVER_ADDR']?>:554/<?php echo $filmName?>" />
<param name="ShowDispl ay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="True" />

<EMBED pluginspage="ht tp://www.videolan.or g"
type="applicati on/x-vlc-plugin"
progid="VideoLA N.VLCPlugin.2"
width="460"
height="400"
name="vlc"
autoplay="yes"
loop="no"
target="rtsp://<?php echo $_SERVER['SERVER_ADDR']?>:554/<?php echo $filmName?>"
id="vlc"></EMBED></object>
<form name="eventForm ">
<input type="hidden" name="eventID" value="<?php echo $eventID?>" />
</form>
<table>
<tr>
<td width="460">
<form>
<TR><TD>
<input type="button" value="Play" name="play" onClick="getVLC ('vlc').playlis t.play()">
<input type="button" value="Stop" name="stop" onClick="getVLC ('vlc').playlis t.stop()">
<input type="button" value="Stop" name="stop" onClick="getVLC ('vlc').playlis t.togglePause() ">
<input type="button" value="Fullscre en" name="fullscree n" onClick="getVLC ('vlc').video.t oggleFullscreen ();">

</form>
</td>
</tr>
</table>
</body>
</html>[/PHP]
Oct 5 '07 #1
3 3230
Motoma
3,237 Recognized Expert Specialist
You will need to consult the documentation for the VLC Plugin you are utilizing.
Oct 5 '07 #2
pbmods
5,821 Recognized Expert Expert
Heya, NMA.

Just 'cause you develop in PHP doesn't mean it's a PHP problem ~_^

I'm going to go ahead and move this thread to the JavaScript forum, where our resident Experts will be better able to help you out.
Oct 5 '07 #3
nma
93 New Member
thanks for the comment...I'll try to send to appropriate forum

NMA
Oct 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
4131
by: Brian.Steele | last post by:
Greetings everyone. See http://www.spiceisle.com/cgi-bin/slideshow/slideshow.cgi?dir=brian/personal/2005/uk_trip/images&type=jpg The "Pause" button works in IE, but not in Firefox. Any ideas why? If you have any other ideas on how the javascript can be improved, please let me know.
8
36442
by: Wim | last post by:
My GUI application starts a process (a console program) when the user hits Play. I would like to add an option to pause that process. The code I've added to detect if the user hit pause/unpause seems to work. But I have no clue how to pause/suspend the process. As far as I can see the Process class doesn't offer anything for this. So it's probably the thread the process is running on that should be suspended or put to sleep. But just...
11
2608
by: Paul Mars | last post by:
How to pause in the middle of a sub? I can not use a timer. The Sub can not be broken in two. tx, paul
3
4374
by: JimJam | last post by:
Hello Peeps I have created a program in VB.NET 2003 that counts down from 7.5 hours to zero from 08:00. I have a button that starts a new countdown from 1 hour to zero whilst the first one is couting down from 7.5 hours. How do I pause that time that is counting down from 1 hour & behind a new button restart it without losing one second? I would also like the time to count down from 37 hours, but will pause after
6
4045
by: Peted | last post by:
Hi wondering what is the best way to do this Need a user to click a button, that sends 3 or 4 string based commands via a TCP/ip socket link I can connect to the ip device no problems, am using indy sockets, and can send information ok
3
2610
by: garfunkel214 | last post by:
I have images and text rotating every 7000 ms using a setInterval. i am trying to implement a pause button that will stop the rotation when clicked. When clicked once more, I would like the rotation to continue. The first time that the pause button is clicked, the rotation stops and all is well. Click again and the rotation continues. But then i can't seem to pause thereafter. Where am i going wrong? function pause() { switch (p) {...
2
2047
by: James | last post by:
anyone know why the pause button doesn't work in vb.net 2003? it works on some small applications but not this large one im currently working on. i will appreciate any ideas!
2
14959
by: keeplearning | last post by:
Hi Friends ! Please view this ANIMATION . I want to control this animation with a play and pause button . when clicked on play button , the animation should start playing . and when clicked on pause button , the animation should stop on the frame on which pause button has been clicked . Please help friends .
6
4705
by: abie16 | last post by:
Hello All, I have created a page with timer for the employee. They need to click start and stop button when doing their work. I want to have a pause button so when they going for break or anything they can just click the pause then once back they click the play button and the timer continue. Anyone can help me with the code. Thank you.
0
8175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8625
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8336
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7168
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4082
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.