How can i use an encoded video streaming url manifest on flutter video_player - flutter

So I have a streaming link generated from encoding azure media services. Video plays on the test player there but now want to use the URL on flutter video player.
Below is an example of the link type to expect https://itvnnows-sano13.streaming.media.azure.net/be344295-3f54-4537-abd4-87435a3d51ea/ITVNNow.ism/manifest
On flutter video player, when I use URL with .mp4 extension it works but when using the above mentioned link nothing happens. Is there a possible workaround?

Related

how to play youtube videos in flutter

I'm trying to play YouTube Videos in my Flutter Web Application, but with the default VideoPlayer you need the YouTube src path (...googlevideos.com/...), which I couldn't get right.
I did some google research and I found the following packages:
https://pub.dev/packages/youtube_player_flutter
https://pub.dev/packages/chewie
But both of them won't play direct YouTube links, and the first one isn't supported for Flutter-Web.
Does anyone have experience with this topic or knows how to get the YouTube source links (for example with an API) ?
Did you try this package: youtube_player_iframe: ^2.3.0
find it here https://pub.dev/packages/youtube_player_iframe
EDIT1: YouTube seems to shuffle the source video file url every day, so using the source file url is not a viable solution. Another option is to add the video to your project locally and add an overlay "YouTube" button on top of the video and when the user taps it he is taken to the video on YouTube. Downside to using asset video though is the fact that you are unable to adjust the progress bar (at least in version 2.4.5).
You can use the official video_player package and get the source file path to YouTube video file by using VLC media player by following these steps:
Find a video on YouTube and copy the URL from the address bar.
In VLC, head to Media > Open Network Stream.
Paste the YouTube link in the box and click Play.
Under Tools, click Codec Information.
In the box that says Location, right-click the block of text and click Select All. This is the url to your local video file.
These steps are almost a copy / paste found from here: How to obtain the direct link to a YouTube video file
You can also use the youtube_player_iframe package, but note that if you hover on top of the video when using that player, you are unable to scroll your content and there seems to be no workaround as discussed in here: Mouse scroll stuck while cursor is on top of youtube_player_iframe. That's the only reason why I decided to use the official video player package.

Can't able to play IPTV channel in Flutter Video Player

I have made a flutter video player app and want to play IPTV channel in the app. The player is playing some online videos successfully but it is not able to run the link of IPTV.
I have a paid IPTV m3u playlist file. I want to play the specific channel of the list in the video player. I have extracted the link from the m3u file and pasted in the player but its not working.
The link is looks like this(http://ottbest.net:80/940F4D6ACD4F/4A30606C8931/83137). This link is running successfully in VLC and MX Player.
First extract your m3u playlist to dart object using m3u_nullsafe package.
Then, you can use Flutter_vlc_player to play m3u videos

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.

How to play RTSP[live streaming] link in android?

I am trying to play RTSP live streaming url "rtsp://164.100.51.207/broadcast/DDLive".
But i am getting this error (1,-1).
I am trying this code
VideoView myVideoView = (VideoView) findViewById(R.id.videoPlayer);
myVideoView.setVideoURI(Uri.parse(url.toString()));
myVideoView.setMediaController(new MediaController(this));
myVideoView.requestFocus();
myVideoView.start();
this code giving error(1,-1).
I am unable to play this link.If anyone tell me idea to play this url.
thinks.
Roundabout suggestion -
download the rtsp stream to a local filesink using VLC which has just been compiled on android.
once the download is complete, simply play that file using the normal Intent field values for a local file and mimetype of mp4.
snip below should play what was downloaded.
new Intent(Intent.ACTION_VIEW).setDataAndType(Uri.parse("file:///mnt/sdcard/myfile.mp4"), "video/mp4");
VLC on android links:
http://forum.xda-developers.com/showthread.php?t=1517415
http://code.google.com/p/android-vlc-remote/source/browse/AndroidManifest.xml
Get an rtsp link from any youtube vide - slightly involved process
You can stream just about any youtube video as RTSP if you do the following:
Get the youtube video ID - like videoID=kgfctMNeDtg
Get the youtube feed for the videoID
Find the rtsp url for the appropriate youtube format . Formats 1,5 6 all have rtsp
request the rtsp uri with an instance of HttpClient
Details:
http://snipplr.com/view/63341/youtube-rtsp-cli-request--audio-track-only-p2/
http://snipplr.com/view/57846/curl--rtsp-to-get-sdp-descriptor-for-media-stream/
I tried playing rtsp://164.100.51.207/broadcast/DDLive on VLC but was unsuccessful in doing so, here is the error I get
Try another link that works like rtsp://217.146.95.166:554/playlist/ch12zqcif.3gp (Some indian channel)

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