473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

problem make a the streaming video full screen.

3
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 4010
simbat
3
Moderator pls delete this thread
Feb 17 '07 #2
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 Expert Mod 8TB
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
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...
1
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...
1
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...
2
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...
8
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...
4
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
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...
0
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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...
0
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,...

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.