Closed Joseph-Nathan closed 4 months ago
Me too, I tried all versions.
Any solution?
Me too , In a project I'm not using youtube_explode_dart but an underlying package use this (pod_player) now that player can't stream 720p youtube videos
any update on this ?
Me too,
Any solution?
According to the original repo this is ported from, muxed streams may be going away.
Hello, unfortunately I have no control on how youtube provides the muxed streams, you should consider to use the video-only streams (which should always have high quality steams) and merge/syncronize it with the audio-only track.
Hello, unfortunately I have no control on how youtube provides the muxed streams, you should consider to use the video-only streams (which should always have high quality steams) and merge/syncronize it with the audio-only track.
How We can merge/syncronize with the audio-only track do you have any Do you have any ideas? Because when audio and video are played separately, even if they are at the same time, there is a delay in one of them due to the downloading process sometimes or any other reason.
Hello, unfortunately I have no control on how youtube provides the muxed streams, you should consider to use the video-only streams (which should always have high quality steams) and merge/syncronize it with the audio-only track.
How We can merge/syncronize with the audio-only track do you have any Do you have any ideas? Because when audio and video are played separately, even if they are at the same time, there is a delay in one of them due to the downloading process sometimes or any other reason.
I agree, especially when you're handling lecture videos in an LMS app for example :"(
The process synchronicing the video and audio tracks depends on which library you are using, here is a simple example with media_kit
:
final manifest =
await yt.videos.streams.getManifest(videoId);
final bestVideo = manifest.videoOnly.withHighestBitrate().url;
final bestAudio = manifest.audioOnly.withHighestBitrate().url;
controller.player.open(Media(bestVideo.toString())); // Automatically plays
controller.player
.setAudioTrack(AudioTrack.uri(bestAudio.toString()));
If you want to merge the video instead you can use first download separately the video and audio and then use a library like https://pub.dev/packages/ffmpeg_kit_flutter to merge the tracks, for example executing: -i videotrack.mp4 -i audiotrack.mp4 -c copy output.mp4
.
I'm closing this since there is nothing I can do to improve the issue since it's caused directly by Youtube.
720p quality dropped from 2days .