Disable DirectPlay (or Force Transcoding) from Channel

Hey guys,
 
I'm writing a new channel and, in my scenario, I'm not always able to detect the video format (I think that is what's causing issues with playing on Chrome Web). Anyways, is there a way to disable DirectPlay/force Transcoding from within channel code? I know it's possible to configure it from the player settings (http://ibin.co/23PoqgXyBoIg), but that's NOT what I'm looking for.
 
This is how I'm configuring my MediaObject:

items.append(
	MediaObject(
		bitrate = bitrate,
		container = container,
		audio_codec = codec,
		audio_channels = 2,
		optimized_for_streaming = True,
		parts = [
			PartObject(
				key = key,
				streams = streams
			)
		]
	)
)

Note: The container variable defaults to 'flv' when I'm not able to detect it.

You can set the optimized_for_streaming parameter on the MediaObject and set the value to False. I think most clients will ask for a transcode then (except PHT, but that client can handle most types of video anyway).

You can set the optimized_for_streaming parameter on the MediaObject and set the value to False. I think most clients will ask for a transcode then (except PHT, but that client can handle most types of video anyway).

Thank you! So, what happens if I pass the wrong container parameter? Since I'm force transcoding, is it better to don't pass it at all?

@Castle Keeper,

I tested you suggestion of setting optimized_for_streaming = False, but It didn't work. I have to manually go to my player settings and disable it. I wonder if it's even possible to override client's settings from within channels...

As Sander said, setting optimized_for_streaming = False will cause most players to choose to transcode the video, but the Plex Player app must be set to allow transcoding of videos. If the Plex player app setting for transcoding is set to Direct Play only, then when the player encounters a video that must be transcoded, it will fail whether it is in a channel or a local or remote library. 

The channel code cannot overide the transcoding setting of a Plex player app.

Thank you for calcifying it for me.


To simply answer the thread question: No, channel CANNOT override client settings to transcode videos or not.