Giter Club home page Giter Club logo

Comments (3)

fpzeng avatar fpzeng commented on July 17, 2024

有对应的测试URL吗?现在播放起来报什么错?

from ksymediaplayer_ios.

teefyy avatar teefyy commented on July 17, 2024

你好 播放器界面显示的是Player Error:1
因为这个是本机测试 没有外网URL
下面是控制台的输出调试信息
2017-06-21 10:10:53.461141+0800 KSYPlayerDemo[27059:77588] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-06-21 10:10:55.469648+0800 KSYPlayerDemo[27059:77588] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-06-21 10:10:55.889 KSYPlayerDemo[27059:77277] now play http://127.0.0.1/fenpianflv.m3u8
2017-06-21 10:10:55.915 KSYPlayerDemo[27059:77277] OK setup GL
2017-06-21 10:10:55.919 KSYPlayerDemo[27059:77277] ------ Player Configuration ------
2017-06-21 10:10:55.920 KSYPlayerDemo[27059:77277] sdk version = 2.3.0.0
2017-06-21 10:10:55.920 KSYPlayerDemo[27059:77277] shouldAutoplay = 1
2017-06-21 10:10:55.920 KSYPlayerDemo[27059:77277] shouldLoop = 0
2017-06-21 10:10:55.921 KSYPlayerDemo[27059:77277] shouldMute = 0
2017-06-21 10:10:55.921 KSYPlayerDemo[27059:77277] shouldHideVideo = 0
2017-06-21 10:10:55.921 KSYPlayerDemo[27059:77277] decodeMode = 2
2017-06-21 10:10:55.922 KSYPlayerDemo[27059:77277] bufferTimeMax = 2.000000
2017-06-21 10:10:55.922 KSYPlayerDemo[27059:77277] scalingMode = 1
2017-06-21 10:10:55.922 KSYPlayerDemo[27059:77277] prepareTimeout = 10
2017-06-21 10:10:55.923 KSYPlayerDemo[27059:77277] readTimeout = 30
2017-06-21 10:10:55.923 KSYPlayerDemo[27059:77277] ------ Player Configuration end ------
2017-06-21 10:10:55.924 KSYPlayerDemo[27059:77277] logJson is { "dev_id" : "5CBHVE8A-1FC0-4BBA-864E-77664398E228", "os_ver" : "10.3", "log_vn" : 101, "platform" : "iOS", "dev_model" : "iPhone Simulator", "sdk_ver" : "2.3.0.0", "log_ver" : "1.0.1", "sdk_type" : "player", "pkg" : "com.ksyun.media.ios.KSYPlayerDemo"}
2017-06-21 10:10:55.924 KSYPlayerDemo[27059:77277] ------ Player Configuration ------
2017-06-21 10:10:55.925 KSYPlayerDemo[27059:77277] sdk version = 2.3.0.0
2017-06-21 10:10:55.925 KSYPlayerDemo[27059:77277] shouldAutoplay = 1
2017-06-21 10:10:55.925 KSYPlayerDemo[27059:77277] shouldLoop = 0
2017-06-21 10:10:55.926 KSYPlayerDemo[27059:77277] shouldMute = 0
2017-06-21 10:10:55.926 KSYPlayerDemo[27059:77277] shouldHideVideo = 0
2017-06-21 10:10:55.926 KSYPlayerDemo[27059:77277] decodeMode = 2
2017-06-21 10:10:55.926 KSYPlayerDemo[27059:77277] bufferTimeMax = 2.000000
2017-06-21 10:10:55.927 KSYPlayerDemo[27059:77277] scalingMode = 1
2017-06-21 10:10:55.927 KSYPlayerDemo[27059:77277] prepareTimeout = 10
2017-06-21 10:10:55.928 KSYPlayerDemo[27059:77277] readTimeout = 30
2017-06-21 10:10:55.928 KSYPlayerDemo[27059:77277] ------ Player Configuration end ------
2017-06-21 10:10:55.928 KSYPlayerDemo[27059:77358] network reachable change from Unknown to WIFI
2017-06-21 10:10:56.389 KSYPlayerDemo[27059:77277] logJson is { "stream_type" : "vod", "body_type" : "onPrepared", "url" : "http://127.0.0.1/fenpianflv.m3u8", "playId" : "99665d55133e300099d7afaf7yyf466e", "_id" : "201706211010551038922677", "prepare_read_bytes" : 20, "fail_code" : 1, "net_des" : "(null)", "type" : 100, "net_type" : "Wifi", "first_frame" : 12, "vcodec" : "N/A", "buf_time_max" : 2, "key_count" : 20, "date" : "1498011056388", "prepare_cost" : 463, "action_id" : "b99af64eb3e1813b9a5eb259cf5390a0", "open_stream_cost" : 463, "serverIp" : "127.0.0.1", "play_stat" : "fail"}
2017-06-21 10:10:56.389 KSYPlayerDemo[27059:77277] logJson is { "ldnsIp" : "", "clientIp" : "", "body_type" : "cdnMonitor", "httpCode" : 206, "respDt" : 12, "url" : "http://127.0.0.1/fenpianflv.m3u8", "playId" : "99665d55133e300099d7afaf7yyf466e", "_id" : "201706211010551038922677", "connectDt" : 0, "taskType" : 0, "downTime" : 0, "type" : 100, "os_ver" : "10.3", "domain" : "127.0.0.1", "downSpeed" : 0, "platform" : "iOS", "dnsDt" : 0, "date" : "1498011056389", "net_type" : "Wifi", "key_count" : 23, "action_id" : "b99af64eb3e1813b9a5eb259cf5390a0", "serverIp" : "127.0.0.1", "dev_model" : "iPhone Simulator"}
2017-06-21 10:10:56.390 KSYPlayerDemo[27059:77277] player finish state: 0
2017-06-21 10:10:56.390 KSYPlayerDemo[27059:77277] player download flow size: 0.000000 MB
2017-06-21 10:10:56.390 KSYPlayerDemo[27059:77277] buffer monitor result:
empty count: 0, lasting: 0.000000 seconds

m3u8是这种格式
#EXTM3U
#EXT-X-TARGETDURATION:15
#EXT-X-DISCONTINUITY
#EXTINF:14,
0.ts
#EXTINF:7,
1.ts
#EXTINF:13,
2.ts
#EXT-X-ENDLIST

这个ts 其实就是flv 每个flv 文件都是完整的一个flv 文件 有标准头部 谢谢了

from ksymediaplayer_ios.

mayudong1 avatar mayudong1 commented on July 17, 2024

m3u8不支持flv格式的切片,暂时不支持,以后可能也不会支持

from ksymediaplayer_ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.