Stwange 126
Recognized Expert New Member
I'm currently loading flv videos in swf using the NetStream, NetConnect(null ) and Video objects, but how do I set the video to autorepeat? I can't find a method for it in any of the APIs for the above, and I don't really want to write code to wait the length of the video before replaying.
Any suggestions will be greatly appreciated, thank-you.
1 7819 Stwange 126
Recognized Expert New Member
I'm currently loading flv videos in swf using the NetStream, NetConnect(null ) and Video objects, but how do I set the video to autorepeat? I can't find a method for it in any of the APIs for the above, and I don't really want to write code to wait the length of the video before replaying.
Any suggestions will be greatly appreciated, thank-you.
If anyone else has the same problem, you can do the following, where stream is the name of the NetStream object: -
//thanks to http://www.tomontheweb2.ca/MakingFireworks/Part3.cfm for the majority of this code.
-
stream.addEventListener(NetStatusEvent.NET_STATUS, loop);
-
function loop(event:NetStatusEvent):void{
-
switch (event.info.code){
-
case"NetStream.Play.Stop":
-
stream.seek(0);
-
}};
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Help |
last post by:
What are the parameters in the constructor if you are
going to send a file over a tcp/ip network using netstream
and filestream?
I have learned that you are supposed to do something like
this:
NetStream nstream = new netStream(client);
FileStream fstream = new File ("c:\\test.txt",
FileMode.open);
|
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...
|
by: Nehmo |
last post by:
When a page has a JavaScript "link" to a video, like
http://www.msnbc.msn.com/id/10478942/ . How do you get the URL of the
actual video? Isn't it in the source somewhere?
--
)|:__ Nehmo __:|(
|
by: Pallas |
last post by:
Hi all,
I've produced some high-def videos and I want people
to be able to watch them on my website, but I may want
to prevent downloads and I certainly want to prevent
them from editing them.
How can I impose such limitations?
I have asked Google Video if they will ever permit
|
by: hzgt9b |
last post by:
Using VS2003, VB.NET,
BACKGROUND
I have a window forms based application that will be distributed and
executed directly from CD media. The app contains a TreeView control and a
WebBroswer (AxSHDocVw.AxWebBrowse) control. The TreeView is populated with
nodes that when clicked play an audio clip that is stored on the CD and
navigate the browser control to a specified web URL (also stored on the CD).
All the web URLs are html documents...
| |
by: triplejump24 |
last post by:
i LOVE doing c++ programming, but i never can get myself started! Once i
figure it out, its fun but anyways here it goes...
Im given a file c:\temp\hwk8input.txt, which contains the records of the
video collection of a small local library.
There are four fields for each video:
1) A unique video ID number without space (v1, v2, etc.);
2) The full video title;
3) The availability of the video (0 for checked out and 1 for checked
in);
4) A...
|
by: Oscar Arreyano |
last post by:
I did a website for a friend's company where they wanted a 'downloads'
section similar to standard file sharing you see all over the place.
Everything works great except for video. I know there are codecs involved,
however, if i create a video (I've tried mpg, avi, wma so far) I can watch
it on my pc from disk just fine. Since my pc is also my test environment, I
try to open the same video from the test site and I get the standard 'Can't...
|
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,...
|
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...
|
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,...
|
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...
| |
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...
|
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();...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |