{ "id": "155189", "key": "TIMOB-20521", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-04-12T16:06:04.000+0000", "created": "2016-02-28T15:54:49.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "authentication", "player", "rtsp", "video" ], "versions": [], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-31T22:26:18.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "With a rtsp streaming that needs authentication I just can't see the video but If its open with vlc player it works. I need this to get the cctv video for a custom app. Sample url: rtsp://username:password@ipaddress/stream\r\n\r\nsample code\r\n\r\n \r\n \r\n \r\n", "attachment": [], "flagged": false, "summary": "Android: RTSP Streaming with authentication Error", "creator": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "381766", "author": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi\r\n\r\nAny updates?\r\n\r\nThank you!!\r\n\r\n", "updateAuthor": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-05T17:05:46.000+0000", "updated": "2016-04-05T17:05:46.000+0000" }, { "id": "382114", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~macazaga] Hello, could you please check if the link is still active and if not update it :), as i cannot seem to open it. After which will continue looking it to the issue and getting a fix to you as soon as possible. Thank you", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T18:52:54.000+0000", "updated": "2016-04-07T18:52:54.000+0000" }, { "id": "382120", "author": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi \r\n\r\nHow can i give you a private url so you can have a real streaming?\r\nWe need this to be fixed urgently, our customer is just waiting for this to launch the app.\r\n\r\nthank you!", "updateAuthor": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T19:18:15.000+0000", "updated": "2016-04-07T19:18:22.000+0000" }, { "id": "382122", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, there is only 3 watches on this ticket you can post it here and i could delete it after or if you want just email it to me at apetkov@appcelerator.com. If you use Ti slack I'm on there too so you could just send me a 1on1 message :).", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T19:45:43.000+0000", "updated": "2016-04-07T19:45:43.000+0000" }, { "id": "382126", "author": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks!\r\n\r\n\r\n\r\nyou can use vlc player to open that streaming so you can check how it works.\r\n\r\n:D", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T20:11:31.000+0000", "updated": "2016-04-07T20:36:32.000+0000" }, { "id": "382128", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rodrigok] Im sorry to deliver this however, after doing some more research turns out apple does not support RTSP , any videos sent through RTSP connection will actually also be removed from the app store you will get this [warning|https://gist.github.com/AngelkPetkov/7040470d953d4a6f26d3eb543d9db637] . What you could do if you have access to the server is create a pipeline feed the RTSP to vlc then export that as a HTTP and connect it to the client(your app) as a HTTP link. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T20:36:06.000+0000", "updated": "2016-04-07T20:36:06.000+0000" }, { "id": "382134", "author": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Angel, There are a lot of apps for CCTV in the app store. I wonder how they do it, because not al DVR use http, there are a lot that use RTSP, warning the user for data consumption. Our customer builds houses in some complex and with this app they want to be able that residents can check all the cctv of the complex they are living.\r\n\r\nIs this able with Android?\r\n\r\n", "updateAuthor": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T21:55:31.000+0000", "updated": "2016-04-07T21:55:31.000+0000" }, { "id": "382141", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "From what i can find online , Android does not directly support it either. Like i said feed the data through VLC and export that instead of the RTSP link, then you will be able to stream the CCTV to an android app or an iOS app. Theres a couple of solutions on stack overflow regarding how to have vlc running along side the connection to convert the stream. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T22:21:57.000+0000", "updated": "2016-04-07T22:21:57.000+0000" }, { "id": "382146", "author": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Android support RTSP, please check this offical doc:\r\nhttp://developer.android.com/guide/appendix/media-formats.html", "updateAuthor": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T23:51:33.000+0000", "updated": "2016-04-07T23:51:33.000+0000" }, { "id": "382208", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ah yeah i apologies , i work on iOS and theres so many android version i must have got confused to as which one supports it. We'll see what we can do for android. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-08T17:04:30.000+0000", "updated": "2016-04-08T17:04:30.000+0000" }, { "id": "382342", "author": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you Angel Hope to hear good news soon.", "updateAuthor": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-11T16:57:44.000+0000", "updated": "2016-04-11T16:57:44.000+0000" }, { "id": "382412", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Classic app code:\r\n{code} \r\nvar vidWin = Titanium.UI.createWindow({\r\n title : 'Video View Demo',\r\n backgroundColor : '#fff'\r\n});\r\n\r\nvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n top : 2,\r\n autoplay : true,\r\n backgroundColor : 'blue',\r\n height : 300,\r\n width : 300,\r\n mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,\r\n scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT\r\n});\r\n\r\nvideoPlayer.url = 'rtsp://admin:123456@ipaddress:554/cam/realmonitor?channel=1&subtype=1';\r\n\r\nvidWin.add(videoPlayer);\r\nvidWin.open();\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-12T04:38:58.000+0000", "updated": "2016-04-12T04:38:58.000+0000" }, { "id": "382446", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "While RTSP is supported in Android, it seems there is no support for authentication with RTSP. Please see Android Issue Ticket: https://code.google.com/p/android/issues/detail?id=10703\r\n\r\nIt's something that is not provided by Android.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-12T07:03:02.000+0000", "updated": "2016-04-12T07:03:02.000+0000" }, { "id": "382872", "author": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Its possible with this code but with the appcelerator limitations we cant create a socket right?\r\n\r\nhttp://stackoverflow.com/questions/19979818/mediaplayer-rtsp-video-stream-with-authentication", "updateAuthor": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-16T00:49:11.000+0000", "updated": "2016-04-16T00:49:11.000+0000" }, { "id": "382920", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "There is a socket api exposed http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network.Socket.TCP If you are able to use that api to do so, that would be great.\r\n\r\nI would believe that this might also be possible if it's written natively and perhaps as an android module that exposes the functionality written in stackoverflow http://stackoverflow.com/a/33323072/6207774 that you mentioned (assuming that code functions well). This would be a new feature request.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-18T02:45:38.000+0000", "updated": "2016-04-18T02:45:38.000+0000" }, { "id": "420722", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as this issue is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-31T22:26:18.000+0000", "updated": "2017-05-31T22:26:18.000+0000" } ], "maxResults": 25, "total": 25, "startAt": 0 } } }