How can I connect to a Wowza Transcoder stream in JWPlayer?

I am trying to get only transcoded audio stream from my Wowza server in JWPlayer.

At the moment, I know that a normal (unencoded) stream transmits it through the server and back to my JWPlayer client - I cannot understand why I cannot get to the audio stream.

JWPlayer code as follows:

var PlayerInstance = jwplayer('jwcontainer').setup({ image: '/resource/javascript/jwplayer/background.png', height: '420', width: '420', skin: 'stormtrooper', autostart: '1', androidhls: true, provider: 'rtmp', playlist: [{ sources: [ { file: 'http://SERVER:80/APPLICATION/flv:STREAM' }, { file: 'http://SERVER:1935/APPLICATION/STREAM/playlist.m3u8' }, { file: 'http://SERVER:1935/APPLICATION/STREAM/manifest.mpd' }, { file: 'http://SERVER:1935/APPLICATION/STREAM/manifest.f4m' } ] }], rtmp: { bufferlength: 1, securetoken: '' } }); 

I tried to provide JWPlayer 'STREAM_aac' (as implied by the Wowza Transcoder configuration?) As the name of my stream and returned with the error "ID not found on server".

I also tried giving it the AAC stream type (replacing 'flv:' with 'aac:'), and also MP3 (for beats only) to no avail.

Any suggestions? Did I miss something?

Does anyone have a working JWPlayer example that receives a Wowza encoded stream?

+5
source share
1 answer

I think you cannot extract audio and audio / video streams from a single Wowza application. To do this, you can swallow two pairs on your Wowza server with one sound and sound / video.

I found this post helpful from this Wowza Community Forum Topic:

There are other ways to get both an A / V stream and an audio-only stream.

  • Use ffmpeg. Entering 1 stream, send 2 streams to Wowza, one of which is audio only.
  • Use Wowza 3.0.5+. You can disable audio or video tracks in Application.xml.

I tested it and it works like this:

  • Publish an FMLE stream named "myStream" for the Wowza "live" application.
  • Create a new live app called "livenovideo".
  • Disable the Application.xml video for the "livenovideo" application.
  • Create a live.stream file containing "rtsp: // localhost: 1935 / live / myStream
  • Use StreamManager to run "live.stream" in the "livenovideo" application.

Play audio + video: rtmp: // [Wowza-IP] / live / myStream

Audio playback only: rtmp: // [Wowza-IP] /livenovideo/live.stream

+3
source

Source: https://habr.com/ru/post/1234298/


All Articles