how to play GStreamer media on Flutter - flutter

I want to know how can I get GStreamer to work on Flutter application to show a video on media player.
Any help and tips would be appriciated

Do you really need GStreamer on the device to play the video?
The main point is the source of the video - you can play:
video file (https://pub.dev/packages/video_player)
WebRTC stream (https://pub.dev/packages/flutter_webrtc)
HLS stream (https://pub.dev/packages/video_player_web_hls)
without GStreamer at all.

If need gstreamer just use platformviews to embed and do the rendering using native android and ios. worked for me.

Related

In flutter how to use WebRTC to stream video to RTMP?

I have tried lot of research.. let me know how to live stream without camera view using RTMP server.I have tried with flutter_live,flutter_webrtc and rtmp_publiser plugin's.
Please try to describe your use scenaio:
What do you want to use to publish to RTMP server? OBS? FFmpeg? Chrome? Android? iOS?
What do you want to play the stream from RTMP server? VLC? Chrome? Android ? iOS?
Why do you need WebRTC?
What did you connect the camera to?
What app or platform like you want? YouTube? Twitter? Discord? Zoom? TikTok?
Conflict question, because WebRTC always use camera:
In flutter how to use WebRTC to stream video to RTMP?
how to live stream without camera
Didn't get you.

Adaptive HLS Streaming - Flutter video_player

I am developing a new native App. I have chosen Flutter for it (over React Native). In this app, there will be a section for video streaming. These videos will have HLS streaming.
I am using video_player package in Flutter for it. I am able to play the video successfully but there is no option to change the quality (1080p, 720p etc.). How can I implement video quality selection in video_player package? Also, does video_player have adaptive bitrate streaming for HLS?
You can use stack widget adding there video player and button. After pressing button you change url of video from 1080 p to 720 p.
There's a package which you can use to change the quality from 1080p to 720p, here's the package's link: yoyo_player
For those that might come here looking for a solution. It is a pretty trivial solution using the default video_player or even yoyo player. In front of the url, just add the file format type that you desire. For example for HLS just add ".m3u8" and for dash add ".mpd" and the video will work and still be adaptive.
So your full url should be something like this:
For HLS
https://itvnnowoptimised-sano1.streaming.media.azure.net/3c0ecaef-002f-461f-854a-2397449d351f/thestoryofjoseph.ism/manifest(format=m3u8-aapl).m3u8
For dash
https://itvnnowoptimised-sano1.streaming.media.azure.net/3c0ecaef-002f-461f-854a-2397449d351f/thestoryofjoseph.ism/manifest(format=mpd-time-cmaf).mpd
This was using azure Media Services.

Headphone control in flutter

How can I play and pause my audio from headphones in a flutter app? I am using audioplayer plugin for audio playback in my app. It is a basic media player. I tried searching on the web but wasn't able to find much. This was also missing from this player
https://github.com/amangautam1/flutter-musicplayer.
Any help would be appriciated.

IPhone Video Streaming Problem

I want to implement video streaming in my project. So, Is there any tutorial that works? Videos are stored at server side. So, to fetch video using url and play it on MPMoviePlayerViewController .
Thank You.
For video streaming in iPhone you can use ffmpeg concept.FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library.Have a look at these sites for samples,
https://github.com/FFmpeg/FFmpeg
http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/
Check this solution, it's a full audio and video streamer.

Auto launch the video player in Android from the browser like an iPhone does

I have just created and iPhone web app, which has some x264 (mp4) video files on it. When I link directly to the file on the iPhone and the user taps the link, the video player is loaded and the video starts playing.
Using the app on an Android phone causes the browser to download the video instead of just playing it. Is there a way to force a video player to just boot up and play the video not download it?
Thanks in advance.
You should know that Android is quite strict regarding the video streams that you can stream. To be able to watch a stream a video (progressively watch and download) the video container must be correctly formatted.
There are many ways to create a container suitable for progressive streaming. You can look it up here: http://groups.google.com/group/android-beginners/browse_thread/thread/2a801ce5f71b5aaf?pli=1
I have successfully created a streamable video. Try to open it from your browser: http://students.mimuw.edu.pl/~nh209484/Video000.3gp