You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, January 25th 2012, 9:29am

Figure out support for RTMP Streaming

Nvm.

This post has been edited 1 times, last edit by "ifanatics" (Feb 20th 2012, 5:32am)


2

Wednesday, January 25th 2012, 7:31pm

Hi,

adding RTMP isn't that small thing
but if you have RTMPknowledge, you can contact me by mail - I can share you the videoplayer source for adding it yourself if you want,

best regards,
Klaus

3

Wednesday, January 25th 2012, 9:00pm

Nvm.

This post has been edited 1 times, last edit by "ifanatics" (Feb 20th 2012, 5:33am)


fredp

Beginner

Posts: 21

Location: Brisbane, Australia

Occupation: Software Engineer

  • Send private message

4

Wednesday, February 15th 2012, 6:32am

I am also extremely interested in RTMP streaming, and I will be attempting to add this functionality very soon.
I am new to flex, but I simply must have this feature, and will do everything possible to implement it.

Klaus, can you please send me the source code, and provide some basic pointers of where to start?

Can RTMP playback be achieved by modifying the videoplayer plugin only?

fredp

Beginner

Posts: 21

Location: Brisbane, Australia

Occupation: Software Engineer

  • Send private message

5

Wednesday, February 15th 2012, 6:35am

duplicated message [Removed]

This post has been edited 1 times, last edit by "fredp" (Feb 28th 2012, 11:34pm)


fredp

Beginner

Posts: 21

Location: Brisbane, Australia

Occupation: Software Engineer

  • Send private message

6

Wednesday, February 29th 2012, 1:00am

Updated videoplayer.swf with RTMP streaming

I am pleased to attach an update to the videoplayer.swf file that includes support for RTMP streaming (thank you Klaus!). *thumbsup*

*attention* Use this at your own risk. It works, but has not been extensively tested, and is not supported by either Klaus or myself. *attention*

How to use it:

1. Back-up your existing videoplayer.swf plugin
2. Unzip the attached file (videoplayer.zip) into the plugins folder.
3. In your application .xml file, set the 'videourl' property of the videoplayer plugin/hotspot to the fully-qualified RTMP stream MRL, e.g.:
videourl="rtmp://streaming_server/application/stream"
(4. Modify your streaming server settings if necessary - see update below)

Note: for live streams set 'buffertime=0'

A properly tested and improved version of the videoplayer plugin with RTMP functionality should appear in the next krpano release - thank you Klaus!

Regards,

Fred.

Update 1st March 2012:

If you are experiencing playback problems (no video) when using an RTMP stream as the main pano, or as a distorted hotspot, then you will need to modify the Application.xml file of the streaming application on your media server:

Flash Media Server:

<Application>
<Client>
<Access>
<AudioSampleAccess enabled="true">/</AudioSampleAccess>
<VideoSampleAccess enabled="true">/</VideoSampleAccess>

</Access>
</Client>
</Application>

Wowza Media Server:

<Application>
<Client>
<Access>
<StreamVideoSampleAccess>*</StreamVideoSampleAccess>
<SharedObjectReadAccess>*</SharedObjectReadAccess>

</Access>
</Client>
</Application>

This change allows krpano to sample raw video/audio data from the stream, which is required for rendering to the pano layer, or to a distorted hotspot.
If the Application.xml file does not exist, create it.

If you are using another streaming server, you need to look up how to enable raw video/audio sampling for that server.
If your stream is hosted by someone else (e.g. Influxis), ask them to enable video/audio sample access.
If you can't change this setting, then you can only use RTMP streams in non-pano plugins or non-distorted hotspots.

The long and boring explanation for this behaviour is that when krpano renders the panorama (and a distorted hotspot video), it directly accesses the sample data from the input video stream. By default, RTMP servers are configured to prevent this behaviour in order to make copying/modification more difficult. So when you try to use your live stream as the panorama source (or as a distorted hotspot), the player connects to the server, but the request for pixel access to the stream is denied, and only a blank screen is displayed. I am not sure how to detect this from the videoplayer.swf file, otherwise I would have added an error message.

Thanks to forum member lab, for identifying this problem.
fredp has attached the following file:
  • videoplayer.zip (5.67 kB - 251 times downloaded - latest: Apr 8th 2019, 4:44pm)

This post has been edited 7 times, last edit by "fredp" (Mar 2nd 2012, 12:01am)


7

Sunday, April 15th 2012, 4:58pm

re: :)

Hi, i m testing wowza.

it looks working fine on live.html example /i have rtsm and stream/

it shows camera on normal page with live transmission.

then... i try to create sample pano with xml:


<hotspot name="video"
url="videoplayer.swf"
videourl="rtmp://mywowzaip/live/camera.stream"
ath="12"
atv="10"
scale="0.5"
rx="0" ry="0" rz="0"
distorted="true"
pausedonstart="false"
loop="true"
volume="0.7"
directionalsound="true"
range="120"
onclick="togglepause();"
buffertime="0"
/>


then... i load it.. and i see no player at all... when i press "o" i see:


INFO: Connected successfully to server
INFO: rtmp server = rtmp://this is my ip wowza/live/
INFO: rtmp stream =camera.stream
INFO: Connected successfully to server

-----------

and thats all...

i tried rtsp on vlc and its working, i tried rtmp on flash wowza example player and its working..

i add wowza example file : in Access:

<StreamVideoSampleAccess>*</StreamVideoSampleAccess>
<SharedObjectReadAccess>*</SharedObjectReadAccess>



no other changes in Application.xml in WOWZA /all default/

any clues?

fredp

Beginner

Posts: 21

Location: Brisbane, Australia

Occupation: Software Engineer

  • Send private message

8

Monday, April 16th 2012, 1:17am

Hi Pavka,

Some things to try:

1.) Have you tried playing the stream as a non-pano plugin? If it works OK, then the Wowza XML settings have probably not been applied correctly?

2.) Did you restart Wowza / streaming-application after changing the XML?

3.) Are you sure the video is in a format supported by Flash player (e.g. H.264 encoded mp4)?

I admit that the output log is not very helpful here because it does not diagnose stream issues. However it does indicate that the server url is correct and the stream URL is correct, and that the videoplayer has connected successfully. I think the most likely explanation is either the stream access issue, or the video format is not readable in Flash.

Regards,

Fred.

9

Wednesday, October 10th 2012, 2:20pm

rtmp

Need some help i signed up for a free trial at http://www.serverroom.us/ using there 5 day free trail http://www.serverroom.us/flashmediaserverhosting
And we have tried to stream a video from Adobe Live encoder into krpano player now the problem i have is

If i plug Krpano player into Local Adobe flash media server and live encoder i can get the player to show the video as needed
BUt when i then change the coding to point at serverroom server all i get is a black screen.
I need to see if anyone has used serverroom before and knows what config needs to be changed i did make the changes suggested and rebooted server but no luck at all.
I can confirm the video is playing fine as i can test this using another player.

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

10

Wednesday, October 10th 2012, 2:46pm

You check that you have a crossdomain XML at server room giving permission to access from your domain?
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

fredp

Beginner

Posts: 21

Location: Brisbane, Australia

Occupation: Software Engineer

  • Send private message

11

Thursday, October 11th 2012, 1:03am

I talked to serverroom and you cannot enable sample access on a trial account, so you will not be able to use the stream as the pano or as a distorted hotspot. I am waiting for a response as to whether it is possible to adjust the sample access settings with a paid account.

12

Thursday, October 11th 2012, 11:23am

Thanks for checking this out for me fredp let me know how u go. Unless somebody else new a good host we could use for rtmp they could recommend or suggest.
or if somebody had a account we could piggy back off to test live streaming our Ladybug setup

fredp

Beginner

Posts: 21

Location: Brisbane, Australia

Occupation: Software Engineer

  • Send private message

13

Friday, October 12th 2012, 12:45am

The trial account with serverroom is shared between trial users, and therefore serverroom does not allow users to configure the Application.xml. However, I have asked them to change the default settings to allow sample access and hopefully this will happen in the next few days. If you sign up for a dedicated FMS instance with serverroom (or any other stream hosting site) then you will have complete control over the application settings and can enable sample access yourself (as well as host your own video! *smile* ).

14

Friday, October 12th 2012, 2:20pm

Fredp i owe u a beer thanks for the help with this one im guessing they will let u know once the change is done .

Thanks heaps for help on this one your a true gentlemen

fredp

Beginner

Posts: 21

Location: Brisbane, Australia

Occupation: Software Engineer

  • Send private message

15

Monday, October 15th 2012, 1:55am

No problem!
Serverroom have now made the necessary changes and their sample video works fine on the pano layer :)
Best of luck with your project.

16

Monday, October 15th 2012, 7:37am

Thanks heaps for the help on this Fredp
ill let u guys know how i we go



No problem!
Serverroom have now made the necessary changes and their sample video works fine on the pano layer :)
Best of luck with your project.

17

Thursday, October 18th 2012, 2:32pm

This is the code we are using for our xml when doing basically just a blank screen but when pressing o
i can see this INFO: krpano 1.0.8.15 (build 2012-10-05)
INFO: Flashplayer WIN 11.4.402.287 PlugIn
INFO: registered to: ****
INFO: rtmp server = rtmp://aaron3.srfms.com/live/
INFO: rtmp stream =live.flv
INFO: rtmp server = rtmp://aaron3.srfms.com/live/
INFO: rtmp stream =live.flv
INFO: Connected successfully to server
INFO: Connected successfully to server
INFO: Server Connection closed
INFO: Server Connection closed

The Closed connection happened when i restarted the vhost so we can see its correctly commucating with the host.

I also get this on the live log
Accepted a connection from IP:101.165.8.***, referrer: http://www.****.com/testcode/krpano.swf/[[DYNAMIC]]/1/[[DYNAMIC]]/4, pageurl: http://www.****.com/testcode/
Accepted a connection from IP:101.165.8.***, referrer: http://www.****.com/testcode/krpano.swf/[[DYNAMIC]]/1/[[DYNAMIC]]/3, pageurl: http://www.****.com/testcode/
Accepted a connection from IP:101.165.8.***, referrer: , pageurl:
Accepted a connection from IP:101.165.8.2***,, referrer: , pageurl:
Any advise would be great thanks


<krpano>
<plugin name="video" url="videoplayer.swf" videourl="rtmp://aaron3.srfms.com/live/live.flv" buffertime="0" />
<image>
<sphere url="plugin:video" />
</image>
<hotspot name="videospot"
url="videoplayer.swf"
alturl="videoplayer.js"
videourl="rtmp://aaron3.srfms.com/live/live.flv"
posterurl=""
distorted="false"
ath="0"
atv="0"
edge="center"
scale="1.0"
rx="0"
ry="0"
rz="0"
loop="false"
pausedonstart="false"
directionalsound="true"
range="200"
volume="0.7"
onclick="togglepause();"
/>
</krpano>



Any help on this would be great all i get atm is blank screen on m y jplayer reading same rtmp host i can see its working and but once in krpano just blank.
If anyone knows or suggests another host they know works would be great.

This post has been edited 1 times, last edit by "misterbanner" (Oct 19th 2012, 3:25pm)


18

Thursday, November 8th 2012, 12:27pm

ANy help i can get on this would be great

thanks in advance

19

Sunday, December 2nd 2012, 11:01am

c
No problem!
Serverroom have now made the necessary changes and their sample video works fine on the pano layer :)
Best of luck with your project.



Was this done with this trail account?
And which video did u use from there prevoew stuff/

20

Tuesday, May 7th 2013, 4:23pm

truble with CDN, what CDN for broadcasting

Hello All.
I have a question about the broadcast of live video 360.

Can I broadcast by video in the SDP(Prototsol Session Description) for player KrPano.

CDN that I'm testing distributes broadcast in the following format:

ConnectURL: rtmp :/ / aloha.cdnvideo.ru / aloha-live
Stream: fedya.sdp

When you start the player an error ERROR: SecurityError: Error # 2123


Can somebody tell CDN that can be easily configured to work with a video broadcast on the player KrPano?


Fedor.