I am trying to play the rtsp in my flutter app using this plugin video_player but this is showing Player Exception how to play rtsp only using this video player?
Have you tried flutter_vlc_player for better rtsp support?
https://pub.dev/packages/flutter_vlc_player
I had a combo of rtmp, rtsp, http mp4 clips and http motion jpeg and flutter_vlc_player handles them. I think video_player just doesn't do everything.
Related
In Flutter, I want to obtain H264 raw stream playing video through WebSockect. I can support playing video on the web and Android by using Jmuxer with embedded web pages.
but I can't play it because of the ios player。
Therefore, I used the method I used in js before. I transferred h264 to YUV through ffmpeg and then played it through WebGL. But I don't know how to convert h264 to YUV through FFmpeg in Flutter
I want to play a video which being received from websocket (wss) on flutter application.
There is a great plugin called flutter_mjpeg
The problem is that the plugin can only accept http protocol but not wss.
What is the best approach to play the video stream in the app?
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.
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.
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.