yixia / Vitamio-iOS

Vitamio for iOS
http://www.vitamio.org/en/
451 stars 176 forks source link

Pass options to media iOS #40

Open iBinh opened 8 years ago

iBinh commented 8 years ago

What is options key and value to pass in Vitamio for iOS?

kirti301290 commented 8 years ago

@iBinh i am facing same issue so how to you resolved this issue

iBinh commented 8 years ago

may be this help you http://stackoverflow.com/questions/35655245/unable-to-play-rtmp-live-video-stream-in-ios

kirti301290 commented 8 years ago

Thanks you for reply That question is asked by me but onebody give proper answer Our server use rtmp protocol so in android device vitamio SDK work for rtmp steaming but vitamio SDK for IOS it does not work so what option should pass in SDK

So pls pls give me answer I had tried since 1 month

iBinh commented 8 years ago

I think this may be help, I've used it https://ffmpeg.org/ffmpeg-protocols.html#rtmp pass these options to vitamio

kirti301290 commented 8 years ago

@iBinh @crossle i tried as per link and passed following options but rtmp stream does not work so pls check what is my mistake for parameter url:rtmp://pi.techfoods.in:8080/live/main_Office // sample not live url keys[0] = @"rtmp_live"; vals[0] = @"live"; keys[1] = @"port"; vals[1] = @"8080"; keys[2] = @"rtmp_buffer"; vals[2] = @"9000"; keys[3] = @"rtmp_app"; vals[3] = @"live"; keys[4] = @"rtmp_playpath"; vals[4] = @"main_Office"; keys[5] = @"server"; vals[5] = @"pi.techfoods.in";

OPEN FILE rtmp://pi.techfoods.in:8080/live/main_Office [Vitamio[Player] Error] {av_log_vitamio_callback:356} [rtmp @ 0x7b96fe80] Server error:

[Vitamio[Player] Error] {cache_context_orictx_setup:1255} NAL ... open orictx error -1 [Vitamio[Player] Info ] {cache_thread_cleanup:1327} CACHE thread dettached 1 [Vitamio[Player] Error] {av_log_vitamio_callback:356} [rtmp @ 0x7ae6fc70] Server response validating failed

2016-03-25 12:52:29.588 Vitamio-Demo[1560:38968] NAL .... media can't cache. [Vitamio[Player] Error] {print_error:367} avformat_open_input: Input/output error : -5 [Vitamio[Player] Info ] {prepare_cleanup:1935} THREAD PREPARE DETTACHED, ret = 1 [Vitamio[Player] Info ] {prepare_thread:1952} THREAD PREPARE END [Vitamio[Player] Error] {notify_thread:2825} error (1, -5) [Vitamio[Player] Info ] {file_close:1324} FILE CLOSE BEGIN [Vitamio[Player] Info ] {file_close:1341} FREE VIDEOPIC BEGIN [Vitamio[Player] Info ] {file_close:1361} FREE VIDEOPIC 2 END [Vitamio[Player] Info ] {file_close:1363} FREE SUBPIC BEGIN [Vitamio[Player] Info ] {file_close:1369} FREE SUBPIC 1 END [Vitamio[Player] Info ] {file_close:1371} FREE AUDIOFRAME BEGIN [Vitamio[Player] Info ] {file_close:1378} FREE AUDIOFRAME 8 END [Vitamio[Player] Info ] {file_close:1380} DELETE GLOBAL REF BEGIN [Vitamio[Player] Info ] {file_close:1382} DELETE GLOBAL REF END [Vitamio[Player] Info ] {file_close:1388} FILE CLOSE END 2016-03-25 12:52:29.676 Vitamio-Demo[1560:38968] NAL 1RRE &&&& VMediaPlayer Error: (null)

thanks once again

kirti301290 commented 8 years ago

@iBinh @crossle Pls help me