Video stream in .strm file but Plex plays only audio

Hi all



started working on my first plugin and after spending a couple hours on learning python :slight_smile: I came to a fairly quick dead end.



I created the following .strm file:



plex://localhost/video/:/webkit?url=http%3A%2F%2Fprima.stream.cz%2Fcategory%2F353%2F371409%2F%3Fautoplay%3D1



It starts to stream in Plex without issues, but no video.



Could anyone help me?



Thanks

If you only get audio, it means there’s a problem with your site config file & Plex can’t lock on to the correct Flash plugin on the page.

Thanks for the reply. If I’m testing the stream with just the one .strm file in one of my source folders, where should I put the config file so that Plex knows that it belongs to the .strm file? I thought that the config files work only with plugin bundles.



Cheers

You can put them in “~/Library/Application Support/Plex Media Server/Site Configurations”. Just create the folder if it doesn’t exist already :slight_smile: Site configs aren’t linked to plug-in bundles - they’re selected based on the URL of the page you try to load via WebKit.

You can check the excellent documentation on site configs here: http://dev.plexapp.com/docs/Configs.html

Jam: … did all that and it’s working … I realized that I had the config file there after messing around with the plugin itself, but I had a wrong flash player app as the plugin



Elan: Thanks I know about the docs, just wasn’t aware of the connection of .strm files and SiteConfig, although it’s pretty obvious if one uses his brain a little :slight_smile:



I guess I’ll bother you some more in the upcoming days as I haven’t coded anything in years and never in python :smiley:



Anyway, thanks to you guys I have managed to move forwards :-). Now I’m stuck at the stream controls (I think I have the pause button configured correctly but pressing pause in Plex just exits the stream with na Error) but I’ll try and solve it by myself and come back here in a state of total despair.



Also one more think I wanted to ask you. The provider puts advertisements before the shows and I haven’t figured out how to bypass them yet (have read in one thread that it’s pretty tricky to do) but that’s not my main issue. The movie controls (pause, stop, …) appear only after the ad finishes playing so my question is, what will Plex do if someone pushes the pause button while the ad is playing and no button is there to push yet? Will it exit with an error or is there a way to disable the internal movie controls for the ad?



We don't recommend skipping the ads as we want to stay in the good graces of the content providers and not cost them money in bandwidth :)

What you can do is start in a "playing-ads" state, detect the play/pause button and then move into a state where you react to those buttons, that should keep the Plex state consistent.



Fair enough ...






OK I'll try that ;)

Haha! Site config fully functional, the menu is generated, just need to set up the stream links dynamically, get thumbs, ratings … a couple finishing touches and my first plugin is complete … this thing is easy and quite fun B)

Awesome, thanks for the update!!!



DrMancini , i see you're in Prague so i'm assuming you're working on PLug-in for one of the Czech TV stations ? ( Nova , CT-1 ?! ) I dont know if these sites are geo locked like many TV stations so if you need someone to test your plugin let me know and i can ask my girl friend to test it. She streams those sites outside of Plex everyday ( we dont have cable/antena in the house , mu rule :-) )

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