Play video from an intermediate point - apache-flex

I am in the middle of an application that has a module to play videos from a directory on the same web-server. Everything is fine, except for the point that, while video is streaming, if I try to drag the player tip to an intermediate point, it either drags back to where it was(in flex player) or keeps loading un-till the video actually approaches that point(in case of jw-player or html5 player) or does nothing(in some other online players available). My client wants to be able to play or start buffering from any desirable point. I read something about RTMP to be used for such thing, but wasnt able to find a direct guide over how to do it.
Help appreciated!

If you're talking about being able to load a video file from x seconds in to the video, you should look into http pseudo-streaming. Here's a link to the jwplayer page about it: jwplayer pseudo-streaming

Related

Wordpress audio playlist skipping tracks

I have an audio playlist in a Wordpress site. When I'm playing the tracks, if the playback of the track catches up with the download of the track, instead of pausing or buffering, it just skips to the next track.
Is there a way I can stop it doing that and instead just let it pause the playback while the download continues?
When I'm on a fast internet connection, it works fine, but when I'm on (for example) my phone, it can't download as fast. I get a diagonal stripe on the replay control, and then it just skips to the next track.
If there's not a convenient setting that works here, maybe there's a way I can put a small delay in the playback of each track to enable the download to get a head start?
Many thanks in advance.

Youtube full iframe player with no cookies - Can it be done?

I am trying to create a page with a standard youtube iframe player. It will play a video and when the first video finishes, it will use loadVideoById to load and play a second, and then after it finishes a third video.
The problem I have is that since I have partially watched the second (and third) video while signed into my youtube account, when the second (and third) video plays, it picks up from where I left off watching it on youtube, instead of starting from the beginning, and I don't want this to happen to anyone else who visits the site.
If I open the page in an incognito window it works as expected, so I know my code is good. If I just use an iframe and embed the video using youtube-nocookie.com as the domain (instead of just youtube.com) the videos start from the beginning. I could get away with using this method except I can seem to detect when the first video ends so I can change the iframe's source to start the next video.
I'm looking for any advice on either being able to detect when a youtube video ends in an iframe, or a way of using the full player with no cookies, or something (anything) else that will accomplish this task.

JW player. on click getting a window asking open or save file

I have two applications that play video. in one of them the JWplayer plays the video as it should , and on load, the video plays by itself.Thats what i need exactly
I'm doing the same process with the second application, but the thing is when it loads the player , first of all i cant see the control bar, second it doesnt play the video. and third when i click the play button. it opens a dialog asking me if i want to open or save the file, but this isnt what i need.all i need is to play the video like in the first application.
Why is it behaving like this ?
thanks all
One more thing, the second application is on a machine that hasnt a media player,
does this have any effect on the player.swf ??? I can see the player and the play button thou. but just wondering ...
Check whether your iis has the mime type of the video file you are trying to play.
If not add it as follows,
File extension: .mp4
Mime Type: video/mp4
After that restart iis and browse the site again...
Note: Search for the exact mime type for the file
Hope this will help you...

How does YouTube prevent video content from being saved/redistributed?

Sure, you can embed a YouTube video on any site, but the content ultimately must come from their server. What technology(ies) do they have that prevents us from saving/redistributing content?
From a protocol standpoint, you would think that anything that comes over the wire could be saved. I hope I am not the only guy on Earth who does not know how to "save" a YouTube video...
There are a couple of plugins for Firefox out there that let you save the content. Basically it parses the sourcecode and looks for the videofile (either .flv or .mp4) and downloads that directly. The flash player on the page just plays the supplied file. They could of course obfuscate the path to the video file, but that can be reverse engineered as well. They can't really do anything about it, because the video file has to be on the user's computer at some point, or if not, the stream could be intercepted as well.
eg. https://addons.mozilla.org/de/firefox/addon/6584/?src=api
Mostly it's a legal deterrent rather than technical. There are a plethora of programs out there that will allow you to download their video. But there are two things they do that help reduce unauthorized downloads:
Use is flash to control the download and playback.
Hosting video yourself is not cheap, and thus it's much easier to simply leave the video on youtube.
They don't do anything about it. Very likely your Flash viewer downloads a copy and puts in somewhere on your harddrive (under my Linux system with Firefox and Adobe Flash in /tmp). After you are done viewing the file is removed to save disk space, but since it is on your harddrive nothing prevents you from making a copy elsewhere.
You might want to look at the 'analogue hole', in the end, data still has to be displayed on your screen, or get through your speakers and what not. It's always theoretically possible to intercept it at that point, or even just record your audio-out into another machine.
So as far as the analogue hole goes, the only solution is to skip that, in this form:
(source: thisdomainisirrelevant.net)
Which is not that marketable.

How can I play a youtube video in swfloader?

I embed a youtube video in my air application. It loaded and played well, but I cannot play more than one video at the time, only one video is played at the time, do you know why?
The code is:
url:String = "http://in.youtube.com/v/fVGk5qm6Mac&hl=en&fs=1";
//texturl.text=url;
swfloader.load(url)
I'm not sure, but I guess that if you create separate SWFLoader instances for each video you want to play, it shouldn't be a problem. It's hard to tell from the code you provide if you are using 1 or more SWFLoader objects.
You should be able to do this, but like Christophe mentioned, you'd need one SWFLoader instance for each video that you want to display at the same time. If you want to play the videos one after the other, you could use the same SWFLoader to do that though. Just wait until the video finishes playing, and then load the new one at that point.
Maybe this will help
Sample Youtube to Flex App

Resources