Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Embedding a player and swfhash code.. rtmp

(http://stream-recorder.com/forum/showthread.php?t=11245)

Pacha12 03-15-2012 04:53 PM

Embedding a player and swfhash code.. rtmp


 
Hey people,
I hope this is the right place to post this. I have tried on about 6 forums already and nobody could help me yet or was bothered answering my question :(

So again, my question is as follows:

I have a batch file which I can use to watch certain live streams. When I type in "1" to wath stream 1, It opens the stream in vlc media player and lets me watch it. So It looks like this in notepad:


@echo off
if defined ProgramFiles(x86) (
FOR /F "tokens=1 delims=[" %%A IN ('VER') DO ECHO %%A^(64-bits^) >nul
set vlc=c:\progra~2\videolan\vlc\vlc >nul
) else (
FOR /F "tokens=1 delims=[" %%A IN ('VER') DO ECHO %%A^(32-bits^) >nul
set vlc=c:\progra~1\videolan\vlc\vlc >nul
)
set "swfsize=927444"
set "swfhash=6c1be1765187eae0bc9af07d858fae59a0effd3c5 b803d08db261ced2c5512bb"
:PRIMUS
title Pacha Streams
cls
echo ===========================================
echo Choose Channel:
echo ==============================================
echo.
echo (1) = Stream1
echo.
set /p "Scelta=>"
IF "%Scelta%"=="1" GOTO UNO

echo.
echo.
echo Scegli tra 1 e 49...
echo.
ping localhost -n 3 >nul
goto PRIMUS

:UNO
cls
echo.
echo Avvio dello streaming in corso...
call flv -v -r rtmp://cp108475.live.edgefcs.net/live/stream_1_800@45494 --swfsize "%swfsize%" --swfhash "%swfhash%" -q | %vlc% -
goto PRIMUS





As I said, this is batch language. Now what I am trying to do is put the livestream onto my website, embeding it into a player (doesnt matter which one). I hope that somebody can give me a script that will help me do it so, maybe an embed code would be GREAT... that I and other people can watch the stream direktly from my site without opening the batch file from my pc :)

jz5968 03-12-2014 06:31 PM

Re: Embedding a player and swfhash code.. rtmp


 
You can play RTMP streams in your browser.
This program will generate the code for you.

http://www.4shared.com/get/fQcSSEFMba/RTMP_pplayer.html


All times are GMT -6. The time now is 05:27 PM.