# Playing RTMP or RTSP source

**URL:** <https://forum.ionicframework.com/t/playing-rtmp-or-rtsp-source/208990>\
**Category:** Ionic Framework\
**Created:** [May 3, 2021, 10:48am UTC](https://forum.ionicframework.com/t/playing-rtmp-or-rtsp-source/208990 "2021-05-03T10:48:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dagon79](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@dagon79](https://forum.ionicframework.com/u/dagon79)\
**Post date:** [May 3, 2021, 10:48am UTC](https://forum.ionicframework.com/t/playing-rtmp-or-rtsp-source/208990/1 "2021-05-03T10:48:56Z")

</div>

Hi to all

I’m searching a solution to play an RTMP or RTSP source in an Ionic App (Android and iOS). We have  
a streaming server from which we would to deliver video streaming to a cellular network  
I’ve already tested without Success Streaming media plugin  
I need the rtsp player to be embdeed inside the mobile app and not redirect me to the native player,  
thus having the player inside my User Interface (more like a video player playing rtsp inside the app)

> **[Streaming Media](https://danielsogl.gitbook.io/awesome-cordova-plugins/streaming-media)**

When i use this plugin to play streaming source I collect an error of this type

> Error streaming MediaPlayer Error: Unknown (1) -1004

or even of this type

> Error streaming MediaPlayer Error: Unknown (1) -2147483648

Furthermore I wonder if is necessary take in consideration HLS (HTTP Live Streaming) to make  
compatible streaming in iOS

I tried even this solution [How to stream YouTube videos in Ionic](https://blog.appit-online.de/how-to-stream-youtube-videos-in-ionic/)  
that is an hybrid solution between Youtube Video Player (That is not a playable solution for me)  
and the use of the streaming media plugin

I hope that someone could help me giving a working suggestion

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![javielito](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@javielito](https://forum.ionicframework.com/u/javielito)\
**Post date:** [May 4, 2021, 6:33pm UTC](https://forum.ionicframework.com/t/playing-rtmp-or-rtsp-source/208990/2 "2021-05-04T18:33:00Z")

</div>

I have the same problems. Can you success ??  
Regards

---

<div class="post-metadata">

**Author:** ![dagon79](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@dagon79](https://forum.ionicframework.com/u/dagon79)\
**Post date:** [May 5, 2021, 10:21am UTC](https://forum.ionicframework.com/t/playing-rtmp-or-rtsp-source/208990/3 "2021-05-05T10:21:13Z")

</div>

Hi javielito in effect I have founded that a fine tuning of the rtsp source is what fault in my configuration.

To test Streaming Media Plugin i’ve used this RTSP Source that working for me:

> rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny\_115k.mov

Now i’m interested in searching more information over the Streaming Media plugin settings, like buffering time setting, do you have this information ?

---

<div class="post-metadata">

**Author:** ![jl87](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jl87](https://forum.ionicframework.com/u/jl87)\
**Post date:** [November 14, 2023, 6:57am UTC](https://forum.ionicframework.com/t/playing-rtmp-or-rtsp-source/208990/4 "2023-11-14T06:57:04Z")

</div>

I have created a cordova package which should be able to broadcast the camera feed via RTMP and also playback via HLS

> **[GitHub - growthengineering/ionic-cordova-rtmp-hls-plugin: Ionic Cordova RTMP...](https://github.com/growthengineering/ionic-cordova-rtmp-hls-plugin)**
>
> Ionic Cordova RTMP & HLS Plugin. Contribute to growthengineering/ionic-cordova-rtmp-hls-plugin development by creating an account on GitHub.
