收藏
回答

七牛云视频无法在ios系统的微信小程序video中播放?

无法播放的视频 https://qiniu.marspark.cn/weixin_video_demo.mp4 ,下面是视频信息。

安卓都可以播放,但在ios 小程序上无法播放,没有报错,一直loading无法加载。使用了uni-app 的 video 组件。直接使用 原视频链接 安卓ios版小程序都可以播放,pc下载下来后上传到七牛云,ios版小程序就无法播放了。binderror 和 bindloadedmetadata 都不会触发。

{
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "Constrained Baseline",
            "codec_type": "video",
            "codec_time_base": "1/36",
            "codec_tag_string": "avc1",
            "codec_tag": "0x31637661",
            "width": 480,
            "height": 272,
            "coded_width": 480,
            "coded_height": 272,
            "has_b_frames": 0,
            "pix_fmt": "yuv420p",
            "level": 21,
            "chroma_location": "left",
            "refs": 1,
            "is_avc": "true",
            "nal_length_size": "4",
            "r_frame_rate": "18/1",
            "avg_frame_rate": "18/1",
            "time_base": "1/18",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 5942,
            "duration": "330.111111",
            "bit_rate": "381760",
            "bits_per_raw_sample": "8",
            "nb_frames": "5942",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0
            },
            "tags": {
                "creation_time": "2009-06-01T19:48:15.000000Z",
                "language": "und",
                "handler_name": "\fVideoHandler"
            }
        },
        {
            "index": 1,
            "codec_name": "aac",
            "codec_long_name": "AAC (Advanced Audio Coding)",
            "profile": "LC",
            "codec_type": "audio",
            "codec_time_base": "1/44100",
            "codec_tag_string": "mp4a",
            "codec_tag": "0x6134706d",
            "sample_fmt": "s16p",
            "sample_rate": "44100",
            "channels": 2,
            "channel_layout": "stereo",
            "bits_per_sample": 0,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/44100",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 14552064,
            "duration": "329.978776",
            "bit_rate": "85212",
            "max_bit_rate": "128000",
            "nb_frames": "14211",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0
            },
            "tags": {
                "creation_time": "2009-06-01T19:48:15.000000Z",
                "language": "und",
                "handler_name": "\fSoundHandler"
            }
        }
    ],
    "format": {
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
        "format_long_name": "QuickTime / MOV",
        "start_time": "0.000000",
        "duration": "330.112000",
        "size": "19432020",
        "bit_rate": "470919",
        "probe_score": 100,
        "tags": {
            "major_brand": "isom",
            "minor_version": "512",
            "compatible_brands": "isomiso2avc1mp41",
            "creation_time": "2009-06-01T19:48:15.000000Z"
        }
    }
}


最后一次编辑于  2023-12-25
回答关注问题邀请回答
收藏
登录 后发表内容