D
D
Demogor2014-07-05 17:59:18
RTMP
Demogor, 2014-07-05 17:59:18

How to play someone else's rtmpe stream in flash player?

Greetings!
There was a need to remove the video stream from the player (flash, as3). One of the more or less adequate options seemed to be the following: extract the scripts from the player (swf) with a decompiler and compile them in a new project (unfortunately, I can’t judge the adequacy of the method - I see Action Script 2 times in my life).
The player itself consists of two parts - a working module that plays video from the stream + a wrapper that pulls it from the server and, apparently, transfers flashvars to it.
The wrapper rebuilt normally, but the module itself, after disabling the part of the gui that could not be assembled normally, seemed to work - but now when you try to connect to the rtmpe stream, the following happens: the NetConnection.Connect.Success event comes, followed by several custom events and , at some not very good moment, NetConnection.Connect.Closed occurs (without *.Rejected).
Both the rebuilt wrapper and the module are on my hosting, when trying to use the "native" player, it works adequately.
The reconnection itself is carried out via userscript in chrome (I change the link to the flash player on the page via js).
What could be the reason and are there ways to overcome it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Borisovich, 2014-07-07
@Alexufo

And why do you need the source code of the player? Find a streaming url and feed it to some www.videojs.com
dig deeper into the requests via firebug or wireshark.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question