flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
164.98k stars 27.18k forks source link

[video_player] Add RTSP/RTMP support #18061

Open fukemy opened 6 years ago

fukemy commented 6 years ago

Hi. I found flutter video_player based on AVPlayer in IOS, which does not support rtsp url. Can anyone help me know how to play a video with format like 'rstp/rtmp' in flutter? 🤔

fukemy commented 6 years ago

@mravn-google

mravn-google commented 6 years ago

If iOS AVPlayer doesn't support the format you want, you might have to write a Flutter plugin wrapping a more powerful player than the platform default. Similarly, it should be quite doable to wrap ExoPlayer rather than MediaPlayer on the Android side. We're hoping to get around to do that, but the Flutter community is more than welcome to beat us to it.

fukemy commented 6 years ago

thanks you. I am really happy when have a framework that help me code once time then build for android + IOS, now I think i will code IOS for solve that rtsp/rtmp problem, and wait for the great flutter lib that can play it for IOS, because im not master to code flutter lib to solve it :)

phillipkerman commented 6 years ago

I wonder if there's an easy way to just bridge to FFMPEG? I have no clue what's involved as far as distribution. I just think if FFMPEG was supported (directly or otherwise) you'd be set. And, I would become super more interested in Flutter.

zoechi commented 6 years ago

@phillipkerman I think you are looking for #7053

zoechi commented 6 years ago

I'm going to close this because I don't expect the Flutter team to provide a plugin with support for an alternative video player.

ghost commented 5 years ago

I'm going to close this because I don't expect the Flutter team to provide a plugin with support for an alternative video player.

Saw your question on implementing wowza with flutter, need a helping hand on same problem. Thank you

zoechi commented 5 years ago

@paayao you mean https://www.wowza.com/community/questions/46506/how-to-use-wowza-with-flutter.html? What kind of help?

ghost commented 5 years ago

@paayao you mean https://www.wowza.com/community/questions/46506/how-to-use-wowza-with-flutter.html? What kind of help?

Yes. Want to know if you were able to use flutter with wowza. Finding it difficult.

zoechi commented 5 years ago

@paayao I haven't tried. I hoped to get some response to the issue. Video streaming is more a longer-time goal for our app.

It would be better have this discussin in https://www.wowza.com/community/questions/46506/how-to-use-wowza-with-flutter.html instead of derailing this issue (even though it's already closed) but showing more demand there is probably the best way to get people who know wowza involved.

function1983 commented 5 years ago

From my personal experience with Android video player:

IJKPlayer does natively support iOS with DEMOS so its very much possible that you could achieve the same result here (and maybe even write a plug-in the the common good of the Flutter community?).

fukemy commented 5 years ago

hello @function1983 , i am very happy when read your comment, i see some people using ijkplayer in IOS as well, and bring it all to once library, the best library i saw i IOSDevlog link

May be it help you. Best regards.

nsmith1024 commented 5 years ago

So how is this going, can live video be streamed from one flutter app to many now?

AndruByrne commented 4 years ago

Hey, @function1983:

From my personal experience with Android video player:

  • If you need RTMP only then you can manually add 'com.google.android.exoplayer:extension-rtmp:2.9.1' to the dependencies of video_player. It will work with just a few lines of code.

This is my requirement; was this experience in flutter or box-stock android? The concept of editing a few dependencies is a lot more attractive than creating my own exoplayer wrapper or depending on cjl_spy@163.com's port of the (ancient) ijk repo.

I'm just going to throw it in the video_player's gradle and see what happens... honestly, I think general purpose exoplayer wrappers that do not support exoplayer's extensibility are not giving the library a fair representation; I hope the new FFI solution makes that easier.

Update: sorta works, it at least it doesn't crash =]

VNAPNIC commented 4 years ago

Flutter WOWZA plugin for iOS/Android. The project is based on Wowza GoCoder SDK https://pub.dev/packages/flutter_wowza

ened commented 3 years ago

RTSP Android side may be covered by https://github.com/flutter/plugins/pull/3933

stuartmorgan commented 1 year ago

Rescoping this to adding support on Android, where doing so is feasible. Making a new plugin for platforms where the wrapped player doesn't support it is out of scope.

stuartmorgan commented 1 year ago

https://github.com/flutter/plugins/pull/4447 had a partial implementation of this, if anyone is interested in picking it up again and completing the PR.

Moyout commented 1 week ago

Rescoping this to adding support on Android, where doing so is feasible. Making a new plugin for platforms where the wrapped player doesn't support it is out of scope.

ExoPlayer project is deprecated. Should have turned towards AndroidX Media3 direction. AndroidX Media3 undoubtedly supports streaming media.