473,698 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem make a the streaming video full screen.

3 New Member
hello guys, i am experiencing some difficulty making a full screen button for my streaming video. i have the following code in my page. but it doesn't seem to work. if you have a code thats working please post it for me. i would really appriciate it if anyone can give me hand on this. thank you

CODe in HTML HEAD

Expand|Select|Wrap|Line Numbers
  1. <SCRIPT type="text/javascript">
  2. var stateTimer = null;
  3.  
  4. function playFullscreen() {
  5. // Check if the video is playing. If it is, change
  6. // to fullscreen. If not, start checking to see when
  7. // it is.
  8. if (3 == MediaPlayer.playState) {
  9. MediaPlayer.fullscreen = 'true';
  10. } else {
  11. MediaPlayer.controls.play();
  12. if (!stateTimer) stateTimer =
  13. window.setInterval( checkState, 500 );
  14. }
  15. }
  16.  
  17. function checkState() {
  18. // Check periodically to see if the video has
  19. // started. If so, destroy the timer and change to
  20. // fullscreen
  21. if (3 == MediaPlayer.playState) {
  22. window.clearInterval( stateTimer );
  23. stateTimer = null;
  24. MediaPlayer.fullscreen = 'true';
  25. }
  26. }
  27. </SCRIPT>
Media Player Code
Expand|Select|Wrap|Line Numbers
  1. <OBJECT id=MediaPlayer1 
  2.       codeBase=/%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20type= 
  3.       height=88 width=90 classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 
  4.       x-oleobject? application>
  5.       <PARAM NAME="autostart" VALUE="true">
  6.       <PARAM NAME="filename" VALUE="testvideo.wmv">
  7.       <PARAM NAME="showcontrols" VALUE="false">
  8.      <PARAM name="fullScreen" value="true">
  9.       <embed width="90" height="88"            autostart="0" type="application/x-mplayer2"    
  10.       showcontrols="1"    showstatusbar="1">               
  11.     </OBJECT>

Code For Full Screen Button
Expand|Select|Wrap|Line Numbers
  1.   <BUTTON type="button" onclick="playFullscreen()">Play fullscreen</BUTTON>
  2.  
Feb 17 '07 #1
3 4017
simbat
3 New Member
Moderator pls delete this thread
Feb 17 '07 #2
cyberking
84 New Member
Moderator pls delete this thread
Ha ha ha..

Thats funny.. Why are u asking for this thread to be deleted?? I see that u yourself had started this thread!!!

Regards
CyberKing
Feb 17 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
Why do you need the thread deleted? If it's because you've solved the problem, it might be a good idea to post your solution so that it can help others.
Feb 17 '07 #4

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

Similar topics

7
5931
by: Sean | last post by:
Hi I've written an HTML page that has a link to an MPG file, to be burned onto a "Demo CD". The MPG file is quite big - 500MB. On my computer, it works fine - clicking the link opens up Windows Media Player, which starts showing the video. But on another computer, the link opens up a new browser page, and shows the video as an embedded QuickTime video. The problem is (I think this might be QuickTime's fault) that it takes about 5...
1
3323
by: torbs | last post by:
I have a problem when I use javascript to get the length and position of a movie I recieve from a rtsp stream. The length and position is extremely high and not the actual length and position of the movie. When I try Real Player and it's methods I recieve a length and position of 0.
1
10333
by: Lonewolf | last post by:
Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of technologies, among them WMP, RealMedia, H.323 and XviD (not sure if it is suitable for streaming even) . I would like to seek the advice of those experts on the following questions, 1) What is the best technologies to be used, in terms of...
2
9751
by: mpaliath | last post by:
Hi guys I am currently involved in a project which requires me to recieve and play streaming video as well as send it. In Visual C++ is there any free library which helps me do this as 'streaming' is not part of the actual project, i am allowed to use external libraries. Also could anyone tell me where I can learn about video streaming in c++ so I can code the streaming part myself too thx
8
7674
by: poorna | last post by:
hi all i want to upload the video files to the server.. then i encode all the video files into flv files ... and then i am go to streaming ... in the mean while i create the thumbnail image from video.. doubts: how to upload the video files to web server?
4
8852
by: chix23 | last post by:
Could you give sample codes or suggestions on how to build a web application with live video streaming? Thanks!!!
2
8438
by: SPG | last post by:
Hi, Two questions for you all.. Firstly, is there a way of streaming video using PHP? At the moment I just have a link to a video file and the whole thing downloads before playing which is a bit of a chore as the video file is pretty huge. Secondly, I want to restrict access to the video using a password. Can anyone think of a nice way of doing this? I thought about having the video
0
3484
by: shahiz | last post by:
This the error i get when i try to run my program Error: Unable to realize com.sun.media.amovie.AMController@18b81e3 Basically i have a mediapanel class that initialize and play the media as datasource import java.awt.BorderLayout; import java.awt.Component; import java.io.*; import java.net.URL; import javax.media.*;
1
2849
by: Faisal Shafiq | last post by:
I want to upload a file direct to the Silverlight Streaming Service from a Web Client such as silverlight application. As per our product requirement we want to upload a .WMV file directly from silverlight client to Silverlight streaming service. I tried to user WebClient and HttpWebRequest for that purpose but, unfortunately I can found the way to do so. There are some problems with both classes. 1. There is no property of get...
0
8676
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9161
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
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
8897
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
8867
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...
1
6522
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
5860
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();...
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.