Play FLV data synchronously

I am just learning the http://www.broccoliproducts.com/softnotebook/rtmpclient/rtmpclient.php RTMP client code. And it works great, so it receives data and saves the FLV file locally.

the code is pretty simple. So my questions are:

1. Is it possible to play this program synchronously? (ok with some delay due to caching) (I tried to open the recording file via VLC, but it is busy ...)

2. Any key, how to implement it?

!!! This is not some kind of advertisement for this project! I just need to create some RTMP player in WPF.

+5
source share
3 answers

General post until you provide additional requirements.

Flash , ActionScript.

on (press) {
    fscommand("Variable1", "Variable2");
}

Visual Studio COM Object Shockwave Flash Object. , embed true.

Visual Studio Properties fscommand, Flash Movie.

AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent

Flash. e.command e.arg, , , - . , ...

lbl_Result.Text="The " + e.args.ToString() + " " + e.command.ToString()+ " was clicked.";

Flash- Flash Visual Studio. , .

# Flash-.

:

  • , embed true. , Path References Flash-. .

:

  • Solution Explorer.
  • Reference Add Reference.
  • COM Object.

:

  • Shockwave ActiveX
  • Flash Accessibility
  • Flash Broker
  • Shockwave Flash

Flash , , # . , RTMP Flash. # Flash.

, , , . , F-In-The-Box, LibRTMP, .

, ; , Flash Video Object; # :

<% MyYoutubeUtils.ShowEmebddedVideo("<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/gtNlQodFMi8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/gtNlQodFMi8&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>") %>

...

public static string ShowEmbeddedVideo(string youtubeObject)
{
    var xdoc = XDocument.Parse(youtubeObject);
    var returnObject = string.Format("<object type=\"{0}\" data=\{1}\"><param name=\"movie\" value=\"{1}\" />",
        xdoc.Root.Element("embed").Attribute("type").Value,
        xdoc.Root.Element("embed").Attribute("src").Value);
    return returnObject;
}

: .

Flash #, # ActionScript. , , , .

, FLV # Flash. , . , # .

+1

Cygwin, tee

rtmpdump -i "rtmp://server/app playpath=mp4:foo.mp4" | tee a.flv | vlc -

, VLC. Cygwin, , 3,2 . Windows tee.

+3

VLC ..net, , .

:
:

It also looks like FluorineFX can communicate with an RTMP server. Not sure about playback, but SharedObjects and their ilk can be accessed from .net.

+1
source

All Articles