Comments (9)
In android
url: https://content.jwplatform.com/manifests/vM7nH0Kl.m3u8
[√] Flutter (Channel stable, 3.13.0, on Microsoft Windows [Version 10.0.19044.1889], locale zh-CN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.5)
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.70.0)
[√] Connected device (4 available)
[√] Network resources
from fvp.
the fix is to set ffmpeg ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto
i dont how it can be done in the package
https://github.com/wang-bin/mdk-sdk/wiki/Player-APIs#void-setpropertyconst-stdstring-key-const-stdstring-value
Since 0.7.0. Set additional properties. Can be used to store user data, or change player behavior if the property is defined internally.
this only for predefined or it can be used to set ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto
and if yes can you help me do it, or apply by default on video_player interface to allow m3u8 playback from files
from fvp.
https://github.com/wang-bin/fvp/blob/master/lib/src/video_player_mdk.dart#L121
try
player.setProperty('avio.protocol_whitelist', 'file,http,https,tcp,tls,crypto');
from fvp.
I will add an option in registerWith()
to passthrough mdk options and player properties
from fvp.
I will add an option in
registerWith()
to passthrough mdk options and player properties
That will be awesome, just as an idea, maybe as a map and they get set on the launch of the player?
I don't know if that will make the start of the video slow or not, it's just a thought
from fvp.
I will add an option in
registerWith()
to passthrough mdk options and player propertiesThat will be awesome, just as an idea, maybe as a map and they get set on the launch of the player?
Yes. It's the only way to control the player backend.
I don't know if that will make the start of the video slow or not, it's just a thought
No. The speed depends on network, stream bit rate etc, not simple lines of code.
from fvp.
I will add an option in
registerWith()
to passthrough mdk options and player propertiesThat will be awesome, just as an idea, maybe as a map and they get set on the launch of the player?
Yes. It's the only way to control the player backend.
I don't know if that will make the start of the video slow or not, it's just a thought
No. The speed depends on network, stream bit rate etc, not simple lines of code.
That's awesome then❤️
from fvp.
https://github.com/wang-bin/fvp/blob/master/lib/src/video_player_mdk.dart#L121
try
player.setProperty('avio.protocol_whitelist', 'file,http,https,tcp,tls,crypto');
i can confirm adding the line made it work
final player = mdk.Player();
_log.fine('$hashCode player${player.nativeHandle} create($uri)');
if (_options is Map<String, dynamic>) {
player.videoDecoders = _options['video.decoders'];
}
if (dataSource.httpHeaders.isNotEmpty) {
String headers = '';
dataSource.httpHeaders.forEach((key, value) {
headers += '$key: $value\r\n';
});
player.setProperty('avio.headers', headers);
}
player.setProperty('avio.protocol_whitelist', 'file,http,https,tcp,tls,crypto');
just a suggestion if that can be the default it will be easier on people and it will be the same as video_player
from fvp.
should i close this issue, or leave it until the release?
from fvp.
Related Issues (20)
- Crashes/green screen when enable hardware acceleration on Amlogic devices HOT 15
- issue running on macos HOT 5
- Linux compile error HOT 5
- Long buffering time when loading video with multiple tracks HOT 6
- Faulting application name: gemini.exe, version: 1.0.0.1 Faulting module name: flutter_windows.dll HOT 7
- run on nixos HOT 3
- 播放 rtsp 的时候,播放中断后无法自动恢复 HOT 8
- Video Playback Issues Across Different Systems HOT 13
- orientation issue in some videos on ios HOT 5
- How to get available subtitles text from subtitle track HOT 29
- Failed to load dynamic library libfvp_plugin.so on Android HOT 9
- the first video frame is not decoded HOT 1
- Video filckers and become transparent for a few frames HOT 8
- How to run example in macos HOT 2
- A small unimportant wish HOT 6
- Android application crash caused by fvp HOT 1
- Audio focus processing on android is missing HOT 1
- No sound on iOS HOT 4
- Improving the Metadata change event HOT 1
- Reverse video playback on MacOS and iOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fvp.