Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass options to media iOS #40

Open
iBinh opened this issue Jan 12, 2016 · 6 comments
Open

Pass options to media iOS #40

iBinh opened this issue Jan 12, 2016 · 6 comments

Comments

@iBinh
Copy link

iBinh commented Jan 12, 2016

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

@kirti301290
Copy link

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

@iBinh
Copy link
Author

iBinh commented Mar 24, 2016

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

@kirti301290
Copy link

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
Copy link
Author

iBinh commented Mar 24, 2016

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

@kirti301290
Copy link

@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
Copy link

@iBinh @crossle
Pls help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants