# There was a problem playing this item

**URL:** https://forums.plex.tv/t/there-was-a-problem-playing-this-item/90952
**Category:** Dev/API Corner
**Tags:** plugin-dev
**Created:** [January 22, 2015, 2:04pm UTC](https://forums.plex.tv/t/there-was-a-problem-playing-this-item/90952 "2015-01-22T14:04:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![frozenbubble](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@frozenbubble](https://forums.plex.tv/u/frozenbubble)
#### Post date: [January 22, 2015, 2:04pm UTC](https://forums.plex.tv/t/there-was-a-problem-playing-this-item/90952/1 "2015-01-22T14:04:58Z")

</div>

Hi,&nbsp;

&nbsp;

I'm in the process to optimize an existing Channel plugin (better video source). Along the way I discovered, that many things had to be changed. So it's not perfect yet, but it's a working process. So far I mostly figured out how to resolve all my issues myself, with the log files. But I have no clue what is going wrong this time, as there is no output in any log files to what the problem is.

&nbsp;

Basically, it's going well. Channel lists all shows, and lists all Episodes, but i can't play any of them.

Source: [https://github.com/pashol/SRFVideoportal.bundle/blob/master/Contents/Code/\_\_init\_\_.py](https://github.com/pashol/SRFVideoportal.bundle/blob/master/Contents/Code/ __init__.py)

&nbsp;

This is what the System Log tells me, when i try to play an episode:

```
015-01-22 14:55:13,033 (7fdbc27fc700) : DEBUG (runtime:814) - Found route matching /video/schweizerfernsehen/:/function/createEpisodeObject
2015-01-22 14:55:13,033 (7fdbc27fc700) : DEBUG (runtime:143) - Calling function 'createEpisodeObject'
2015-01-22 14:55:13,033 (7fdbc27fc700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: 
2015-01-22 14:55:13,034 (7fdbc27fc700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: 
2015-01-22 14:55:13,038 (7fdbc27fc700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 4367 bytes
2015-01-22 14:55:13,138 (7fdbc27fc700) : DEBUG (runtime:717) - Handling request GET /video/schweizerfernsehen/:/function/PlayVideo?function_args=Y2VyZWFsMQoxCmRpY3QKMQp1MTQ3Cmh0dHA6Ly9oZHZvZHNyZm9yaWdpbi1mLmFrYW1haWhkLm5ldC9pL3ZvZC9iZW9iYWNodGVydHYvMjAxNC8xMS9iZW9iYWNodGVydHZfMjAxNDExMjNfMTgxNTQ3X3Zfd2ViY2FzdF9oMjY0XyxxMTAscTIwLHEzMCxxNDAsLm1wNC5jc21pbC9tYXN0ZXIubTN1OHMzCnVybHIwCg__&indirect=1&mediaInfo=%7B%22audio_channels%22%3A%202%2C%20%22protocol%22%3A%20null%2C%20%22optimized_for_streaming%22%3A%20true%2C%20%22video_frame_rate%22%3A%20null%2C%20%22duration%22%3A%20null%2C%20%22height%22%3A%20null%2C%20%22width%22%3A%20null%2C%20%22container%22%3A%20%22mp4%22%2C%20%22audio_codec%22%3A%20%22aac%22%2C%20%22aspect_ratio%22%3A%20null%2C%20%22video_codec%22%3A%20%22h264%22%2C%20%22video_resolution%22%3A%20null%2C%20%22bitrate%22%3A%20null%7D
2015-01-22 14:55:13,139 (7fdbc27fc700) : DEBUG (runtime:814) - Found route matching /video/schweizerfernsehen/:/function/PlayVideo
2015-01-22 14:55:13,140 (7fdbc27fc700) : DEBUG (runtime:143) - Calling function 'PlayVideo'
2015-01-22 14:55:13,144 (7fdbc27fc700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1112 bytes
```

Plugin Log:

```
2015-01-22 14:53:21,781 (7f6e667fc700) : DEBUG (runtime:918) - Response: [200] str, 85614 bytes
2015-01-22 14:54:04,874 (7f6e667fc700) : DEBUG (runtime:717) - Handling request GET /system/messaging/clear_events/com.plexapp.plugins.SRFVideoportal
2015-01-22 14:54:04,875 (7f6e667fc700) : DEBUG (runtime:814) - Found route matching /system/messaging/clear_events/com.plexapp.plugins.SRFVideoportal
2015-01-22 14:54:04,876 (7f6e667fc700) : DEBUG (runtime:918) - Response: [200] str, 0 bytes
2015-01-22 14:54:05,021 (7f6e667fc700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.system/resourceHashes
2015-01-22 14:54:05,022 (7f6e667fc700) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.system/resourceHashes
2015-01-22 14:54:05,023 (7f6e667fc700) : DEBUG (runtime:918) - Response: [200] str, 22471 bytes
2015-01-22 14:54:05,051 (7f6e667fc700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_
2015-01-22 14:54:05,052 (7f6e667fc700) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_
2015-01-22 14:54:05,091 (7f6e667fc700) : DEBUG (runtime:918) - Response: [200] str, 85614 bytes
```

Media Server Log:

```
Jan 22, 2015 14:55:13 [0x7fa981bfb700] DEBUG - Request: [127.0.0.1:43085] GET /video/schweizerfernsehen/:/function/PlayVideo?function_args=Y2VyZWFsMQoxCmRpY3QKMQp1MTQ3Cmh0dHA6Ly9oZHZvZHNyZm9yaWdpbi1mLmFrYW1haWhkLm5ldC9pL3ZvZC9iZW9iYWNodGVydHYvMjAxNC8xMS9iZW9iYWNodGVydHZfMjAxNDExMjNfMTgxNTQ3X3Zfd2ViY2FzdF9oMjY0XyxxMTAscTIwLHEzMCxxNDAsLm1wNC5jc21pbC9tYXN0ZXIubTN1OHMzCnVybHIwCg__&indirect=1&mediaInfo=%7B%22audio_channels%22%3A%202%2C%20%22protocol%22%3A%20null%2C%20%22optimized_for_streaming%22%3A%20true%2C%20%22video_frame_rate%22%3A%20null%2C%20%22duration%22%3A%20null%2C%20%22height%22%3A%20null%2C%20%22width%22%3A%20null%2C%20%22container%22%3A%20%22mp4%22%2C%20%22audio_codec%22%3A%20%22aac%22%2C%20%22aspect_ratio%22%3A%20null%2C%20%22video_codec%22%3A%20%22h264%22%2C%20%22video_resolution%22%3A%20null%2C%20%22bitrate%22%3A%20null%7D (4 live)
Jan 22, 2015 14:55:13 [0x7fa981bfb700] DEBUG - * function_args => Y2VyZWFsMQoxCmRpY3QKMQp1MTQ3Cmh0dHA6Ly9oZHZvZHNyZm9yaWdpbi1mLmFrYW1haWhkLm5ldC9pL3ZvZC9iZW9iYWNodGVydHYvMjAxNC8xMS9iZW9iYWNodGVydHZfMjAxNDExMjNfMTgxNTQ3X3Zfd2ViY2FzdF9oMjY0XyxxMTAscTIwLHEzMCxxNDAsLm1wNC5jc21pbC9tYXN0ZXIubTN1OHMzCnVybHIwCg__
Jan 22, 2015 14:55:13 [0x7fa981bfb700] DEBUG - * indirect => 1
Jan 22, 2015 14:55:13 [0x7fa981bfb700] DEBUG - * mediaInfo => {"audio_channels": 2, "protocol": null, "optimized_for_streaming": true, "video_frame_rate": null, "duration": null, "height": null, "width": null, "container": "mp4", "audio_codec": "aac", "aspect_ratio": null, "video_codec": "h264", "video_resolution": null, "bitrate": null}
Jan 22, 2015 14:55:13 [0x7fa981bfb700] DEBUG - Plug-in com.plexapp.plugins.SRFVideoportal has been used 177 times.
Jan 22, 2015 14:55:13 [0x7fa981bfb700] DEBUG - [com.plexapp.plugins.SRFVideoportal] Sending command over HTTP (GET): /video/schweizerfernsehen/:/function/PlayVideo?function_args=Y2VyZWFsMQoxCmRpY3QKMQp1MTQ3Cmh0dHA6Ly9oZHZvZHNyZm9yaWdpbi1mLmFrYW1haWhkLm5ldC9pL3ZvZC9iZW9iYWNodGVydHYvMjAxNC8xMS9iZW9iYWNodGVydHZfMjAxNDExMjNfMTgxNTQ3X3Zfd2ViY2FzdF9oMjY0XyxxMTAscTIwLHEzMCxxNDAsLm1wNC5jc21pbC9tYXN0ZXIubTN1OHMzCnVybHIwCg__&indirect=1&mediaInfo=%7B%22audio_channels%22%3A%202%2C%20%22protocol%22%3A%20null%2C%20%22optimized_for_streaming%22%3A%20true%2C%20%22video_frame_rate%22%3A%20null%2C%20%22duration%22%3A%20null%2C%20%22height%22%3A%20null%2C%20%22width%22%3A%20null%2C%20%22container%22%3A%20%22mp4%22%2C%20%22audio_codec%22%3A%20%22aac%22%2C%20%22aspect_ratio%22%3A%20null%2C%20%22video_codec%22%3A%20%22h264%22%2C%20%22video_resolution%22%3A%20null%2C%20%22bitrate%22%3A%20null%7D
Jan 22, 2015 14:55:13 [0x7fa981bfb700] DEBUG - HTTP requesting to: http://127.0.0.1:49632/video/schweizerfernsehen/:/function/PlayVideo?function_args=Y2VyZWFsMQoxCmRpY3QKMQp1MTQ3Cmh0dHA6Ly9oZHZvZHNyZm9yaWdpbi1mLmFrYW1haWhkLm5ldC9pL3ZvZC9iZW9iYWNodGVydHYvMjAxNC8xMS9iZW9iYWNodGVydHZfMjAxNDExMjNfMTgxNTQ3X3Zfd2ViY2FzdF9oMjY0XyxxMTAscTIwLHEzMCxxNDAsLm1wNC5jc21pbC9tYXN0ZXIubTN1OHMzCnVybHIwCg__&indirect=1&mediaInfo=%7B%22audio_channels%22%3A%202%2C%20%22protocol%22%3A%20null%2C%20%22optimized_for_streaming%22%3A%20true%2C%20%22video_frame_rate%22%3A%20null%2C%20%22duration%22%3A%20null%2C%20%22height%22%3A%20null%2C%20%22width%22%3A%20null%2C%20%22container%22%3A%20%22mp4%22%2C%20%22audio_codec%22%3A%20%22aac%22%2C%20%22aspect_ratio%22%3A%20null%2C%20%22video_codec%22%3A%20%22h264%22%2C%20%22video_resolution%22%3A%20null%2C%20%22bitrate%22%3A%20null%7D
Jan 22, 2015 14:55:13 [0x7fa981bfb700] DEBUG - [com.plexapp.plugins.SRFVideoportal] HTTP reply status 200, with 1112 bytes of content.
Jan 22, 2015 14:55:13 [0x7fa98affe700] VERBOSE - Finished writing response for GET /video/schweizerfernsehen/:/function/PlayVideo?function_args=Y2VyZWFsMQoxCmRpY3QKMQp1MTQ3Cmh0dHA6Ly9oZHZvZHNyZm9yaWdpbi1mLmFrYW1haWhkLm5ldC9pL3ZvZC9iZW9iYWNodGVydHYvMjAxNC8xMS9iZW9iYWNodGVydHZfMjAxNDExMjNfMTgxNTQ3X3Zfd2ViY2FzdF9oMjY0XyxxMTAscTIwLHEzMCxxNDAsLm1wNC5jc21pbC9tYXN0ZXIubTN1OHMzCnVybHIwCg__&indirect=1&mediaInfo=%7B%22audio_channels%22%3A%202%2C%20%22protocol%22%3A%20null%2C%20%22optimized_for_streaming%22%3A%20true%2C%20%22video_frame_rate%22%3A%20null%2C%20%22duration%22%3A%20null%2C%20%22height%22%3A%20null%2C%20%22width%22%3A%20null%2C%20%22container%22%3A%20%22mp4%22%2C%20%22audio_codec%22%3A%20%22aac%22%2C%20%22aspect_ratio%22%3A%20null%2C%20%22video_codec%22%3A%20%22h264%22%2C%20%22video_resolution%22%3A%20null%2C%20%22bitrate%22%3A%20null%7D, 0 bytes in 11ms
Jan 22, 2015 14:55:13 [0x7fa981bfb700] VERBOSE - Completed request: GET /video/schweizerfernsehen/:/function/PlayVideo?function_args=Y2VyZWFsMQoxCmRpY3QKMQp1MTQ3Cmh0dHA6Ly9oZHZvZHNyZm9yaWdpbi1mLmFrYW1haWhkLm5ldC9pL3ZvZC9iZW9iYWNodGVydHYvMjAxNC8xMS9iZW9iYWNodGVydHZfMjAxNDExMjNfMTgxNTQ3X3Zfd2ViY2FzdF9oMjY0XyxxMTAscTIwLHEzMCxxNDAsLm1wNC5jc21pbC9tYXN0ZXIubTN1OHMzCnVybHIwCg__&indirect=1&mediaInfo=%7B%22audio_channels%22%3A%202%2C%20%22protocol%22%3A%20null%2C%20%22optimized_for_streaming%22%3A%20true%2C%20%22video_frame_rate%22%3A%20null%2C%20%22duration%22%3A%20null%2C%20%22height%22%3A%20null%2C%20%22width%22%3A%20null%2C%20%22container%22%3A%20%22mp4%22%2C%20%22audio_codec%22%3A%20%22aac%22%2C%20%22aspect_ratio%22%3A%20null%2C%20%22video_codec%22%3A%20%22h264%22%2C%20%22video_resolution%22%3A%20null%2C%20%22bitrate%22%3A%20null%7D: 2200
```

The URL that it tries to play is basically this kind of:

[http://srfvodhd-vh.akamaihd.net/i/vod/dok/2015/01/dok\_20150118\_162502\_v\_webcast\_h264\_,q10,q20,q30,q40,q50,q60,.mp4.csmil/master.m3u8](http://srfvodhd-vh.akamaihd.net/i/vod/dok/2015/01/dok_20150118_162502_v_webcast_h264_,q10,q20,q30,q40,q50,q60,.mp4.csmil/master.m3u8)

&nbsp;

Thanks for any advice.

---

<div class="post-metadata">

### Author: ![frozenbubble](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@frozenbubble](https://forums.plex.tv/u/frozenbubble)
#### Post date: [January 22, 2015, 2:52pm UTC](https://forums.plex.tv/t/there-was-a-problem-playing-this-item/90952/2 "2015-01-22T14:52:50Z")

</div>

Problem solved, had to change the MediaObject to:&nbsp;PartObject(key=HTTPLiveStreamURL(url=url))

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [December 21, 2019, 4:18am UTC](https://forums.plex.tv/t/there-was-a-problem-playing-this-item/90952/3 "2019-12-21T04:18:22Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
